-
-
Notifications
You must be signed in to change notification settings - Fork 55
Closed
Description
nr docs:dev
fail with:
nr docs:dev 1 ✘
> anu-vue@0.11.0 docs:dev /home/manu/Sites/npm/anu2
> pnpm --filter @anu-vue/documentation dev
> @anu-vue/documentation@1.0.0 dev /home/manu/Sites/npm/anu2/docs
> vitepress dev
vitepress v1.0.0-alpha.29
/home/manu/Sites/npm/anu2/packages/preset-theme-default/src/scss/index.scss:1
@import '@unocss/reset/tailwind.css';
^
SyntaxError: Invalid or unexpected token
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1033:15)
at Module._compile (node:internal/modules/cjs/loader:1069:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Module._load (node:internal/modules/cjs/loader:827:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at jiti (/home/manu/Sites/npm/anu2/node_modules/.pnpm/jiti@1.16.0/node_modules/jiti/dist/jiti.js:1:245552)
at /home/manu/Sites/npm/anu2/packages/preset-theme-default/src/index.ts:7:1
at jiti (/home/manu/Sites/npm/anu2/node_modules/.pnpm/jiti@1.16.0/node_modules/jiti/dist/jiti.js:1:247502)
at /home/manu/Sites/npm/anu2/docs/uno.config.ts:9:14
at jiti (/home/manu/Sites/npm/anu2/node_modules/.pnpm/jiti@1.16.0/node_modules/jiti/dist/jiti.js:1:247502)
at loadConfigFile (/home/manu/Sites/npm/anu2/node_modules/.pnpm/unconfig@0.3.7/node_modules/unconfig/dist/index.cjs:155:11)
at async Object.load (/home/manu/Sites/npm/anu2/node_modules/.pnpm/unconfig@0.3.7/node_modules/unconfig/dist/index.cjs:84:24)
at async Object.loadConfig (/home/manu/Sites/npm/anu2/node_modules/.pnpm/@unocss+config@0.46.5/node_modules/@unocss/config/dist/index.cjs:50:18)
at async reloadConfig (/home/manu/Sites/npm/anu2/node_modules/.pnpm/@unocss+vite@0.46.5_vite@3.2.4/node_modules/@unocss/vite/dist/index.cjs:74:20)
Node.js v18.3.0
/home/manu/Sites/npm/anu2/docs:
ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL @anu-vue/documentation@1.0.0 dev: `vitepress dev`
Exit status 1
ELIFECYCLE Command failed with exit code 1.
So I investigate a little bit more and it seems that everything is ok in packages/preset-theme-default
.
When I go to this folder and run pnpm buid
, the build works with the styles.css
file.
The error come from the doc build. In the log, we can see the line at /home/manu/Sites/npm/anu2/packages/preset-theme-default/src/index.ts:7:1
. This file is called from this line of docs/uno.config.ts
So, I replaced src by dist : import { presetThemeDefault } from '../packages/preset-theme-default/src/index'
for import { presetThemeDefault } from '../packages/preset-theme-default/dist/index'
and it works !
But I don't know the implication of this change. Maybe we can develop both preset-theme-default
and the doc at the same time...
Metadata
Metadata
Assignees
Labels
No labels