What happended to me ? #3018
-
Describe the bugwhen i created vitepress in a seperate project, it was ok. ENOENT: no such file or directory, realpath 'E:\monorepos\equipment-product\node_modules\.pnpm\[email protected]_@[email protected]_@[email protected][email protected]_postcss@_cearrku5wuarlambwx5odjeta4\node_modules\vitepress\dist\client\theme-default\components\VPLocalNavOutlineDropdown.vue' ReproductionExpected behaviori don't know System Info
Additional contextNo response Validations
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Can you share the repo? Firstly, delete lock file from docs/ directory. Second, make sure docs is there in pnpm-workspaces. Then run Next, if you've vitepress listed as a dep of {
"name": "docs",
"private": true,
"type": "module",
"scripts": {
"dev": "vitepress dev",
"build": "vitepress build",
"preview": "vitepress preview"
},
"devDependencies": {
"vitepress": "latest"
}
} Then in your root {
"scripts": {
"docs:dev": "pnpm -F=docs dev",
"docs:build": "pnpm -F=docs build",
"docs:preview": "pnpm -F=docs preview"
}
} If you don't have vitepress as a dependency in your |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
i update my node version then the problem resolved |
Beta Was this translation helpful? Give feedback.
i update my node version then the problem resolved