-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Component is missing template or render function #8759
Comments
It worked if I removed this part. I am not sure if this is a bug in Vite. In v2, vite/packages/plugin-vue/src/index.ts Line 127 in d4dcdd1
|
Awesome! Thanks a lot. This seems to work. I am also seeing ~20% performance speed-up compared to what we had before. 🚀 |
Now this is causing another issue, the SSR is not working. The builds are succeeding but the generated HTML has only layout, no content. After building, check any HTML file inside When that external heuristics option is set: It seems that |
Closing as that was not a bug in Vite. I created a PR fixing it. See vuejs/vitepress#855 for details. |
Describe the bug
Hi! We are switching to Vite v3 in VitePress, but there is a blocker. We are not able to make it work without
legacy.buildSsrCjsExternalHeuristics
set to true. It is set here in Vite docs too:vite/docs/vite.config.ts
Line 8 in cd59ee4
Steps to reproduce:
chore/vite-3
pnpm i && pnpm docs-build
Sorry that the provided repo is not minimal and the issue may not be with Vite itself, but any help will be appreciated. Thanks!
Reproduction
https://github.com/vuejs/vitepress/tree/chore/vite-3
System Info
Used Package Manager
pnpm
Logs
Click to expand!
VitePressApp
is defined here: https://github.com/vuejs/vitepress/blob/5dbca1f5e23532c930593865de8cfac0ef76f3c2/src/client/app/index.ts#L21Validations
The text was updated successfully, but these errors were encountered: