-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support VitePress (Vite/Vue SSG) #20609
Comments
vitepress is trying to access |
With deno 1.40 the build now errors at: ➜ deno run -A npm:vitepress build
vitepress v1.0.0-rc.40
build error:
TypeError: unknown variant `junction`, expected `file` or `dir`
at Object.symlinkSync (ext:deno_fs/30_fs.js:545:3)
at Object.symlinkSync (ext:deno_node/_fs/_fs_symlink.ts:21:8)
at Object.createSymlinkSync$1 (file:///Users/admin/repos/deno-kitchensink/new-vitepress/node_modules/.deno/[email protected]/node_modules/vitepress/dist/node/serve-e9-zRdpq.js:2160:27)
at linkVue (file:///Users/admin/repos/deno-kitchensink/new-vitepress/node_modules/.deno/[email protected]/node_modules/vitepress/dist/node/serve-e9-zRdpq.js:46718:12)
at build (file:///Users/admin/repos/deno-kitchensink/new-vitepress/node_modules/.deno/[email protected]/node_modules/vitepress/dist/node/serve-e9-zRdpq.js:46622:21)
at eventLoopTick (ext:core/01_core.js:59:7) Also, in the ➜ deno run -A npm:vitepress dev
vitepress v1.0.0-rc.40
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h to show help
warning: Use of deprecated "Deno.stdin.rid" API. This API will be removed in Deno 2.
hint: Use `Deno.stdin` instance methods instead.
|
Fixes #20609 Vitepress support! `vitepress dev` and `vitepress build` via BYONM
@littledivy , i upgraded to latest canary, and when i run the build command now i see: ➜ deno run -A npm:[email protected] build
vitepress v1.0.0-rc.45
✓ building client + server bundles...
build error:
TypeError: Relative import path "vue/server-renderer" not prefixed with / or ./ or ../
at file:///Users/admin/repos/deno-kitchensink/vitepress-working/.vitepress/.temp/app.js?t=1709976732378:2:161
at async build (file:///Users/admin/repos/deno-kitchensink/vitepress-working/node_modules/.deno/[email protected]/node_modules/vitepress/dist/node/serve-CXeFQMGg.js:46677:24) |
Can this be re-opened? |
Hmm, does it work using BYONM? // deno.jsonc
{ unstable: ["byonm"] }
|
Oh right, I missed that - where will these details for each framework be stored? Could there be a frameworks section somewhere in the deno docs? It actually did fix build, but the preview break with this when I go to the localhost: ➜ deno task docs:preview
Task docs:preview vitepress preview
vitepress v1.0.0-rc.45
Built site served at http://localhost:4173/
error: Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'statusCode')
at Polka.onError (file:///Users/admin/repos/deno-kitchensink/vitepress-working/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vitepress/dist/node/serve-CXeFQMGg.js:63027:24)
at next (file:///Users/admin/repos/deno-kitchensink/vitepress-working/node_modules/.pnpm/[email protected]_@[email protected][email protected]/node_modules/vitepress/dist/node/serve-CXeFQMGg.js:63103:38)
at eventLoopTick (ext:core/01_core.js:208:9) |
We still need to figure out a good DX for this. Ideally the user wouldn't have to know about 'byonm' |
Fixes #20609 Vitepress support! `vitepress dev` and `vitepress build` via BYONM
IMO it would be great if Vitepress could be supported without a |
Tried to reproduce the issue again and it seems like the mentioned problems have been resolved. I'm now stuck on the following error: TypeError: Relative import path "vue/server-renderer" not prefixed with / or ./ or ../
at file:///<project>/.vitepress/.temp/app.js?t=1712960529044:2:161
at async build (file:///<project>/node_modules/.deno/[email protected]/node_modules/vitepress/dist/node/serve-Csn-CKFx.js:46758:24) |
@marvinhagemeister It works with |
Closing, all functionality is working with DENO_FUTURE=1. DX will get better when
|
I was able to get Vitepress building without node on Deno v1.45.5, but I hit a few obstacles: #24916, vueuse/vue-demi#266, denoland/deno_docker#386 This works: export DENO_FUTURE=1
deno i --allow-scripts=npm:esbuild
deno task build The esbuild postinstall is needed, but if you just use For me, |
@alexgleason Can you open a new issue for that? It sounds like the issue is different from what the original poster here ran into, even if both happened in the context of |
@marvinhagemeister I opened #24916, just wanted to update this thread as well for posterity. |
@alexgleason Sweet, thanks for opening a new issue. Instead of commenting on closed issues, you can link your issue to the old one by adding something in your text like: Relates to: <LINK TO THE ISSUE> By putting a link to another issue in your issue GitHub will automatically create a shared connection that is visible from both issues. That's an easier way to update other issues without having to create new comments there. |
VitePress - Website - GitHub
Platform
Darwin 22.6.0 arm64 arm
Version
deno 1.37.0
Repro
cd
to itdeno run -A npm:vitepress init
- just step throughdeno run -A npm:vitepress dev
- Dev mode is working 🎉deno run -A npm:vitepress build
Expected
That a build is made
Actual
The text was updated successfully, but these errors were encountered: