You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to run vitepress through npx without installing it in the local package. And starting from 0.21.4 (I didn't narrow down the version number precisely) npx vitepress build won't work, but npx vitepress dev works fine.
> npx vitepress build docs
vitepress v0.21.4
- building client + server bundles...
✓ building client + server bundles...
- rendering pages...
✖ rendering pages...
build error:
Error: Cannot find module 'vue'
Require stack:
- /home/runner/work/esbuild-dev/esbuild-dev/docs/.vitepress/.temp/app.js
This isn't a supported use case because VitePress SSR is executed from a temp build directory in your project. It assumes VitePress itself (and thus Vue) is installed locally.
Describe the bug
I tried to run vitepress through
npx
without installing it in the local package. And starting from 0.21.4 (I didn't narrow down the version number precisely)npx vitepress build
won't work, butnpx vitepress dev
works fine.Full output see the table below:
dev
fine,build
finedev
fine,build
errorReproduction
Try this command without installing vitepress:
Expected behavior
The
build
command should work.System Info
Additional context
I noticed #324 has similar situation but the error message differs.
Validations
The text was updated successfully, but these errors were encountered: