-
Notifications
You must be signed in to change notification settings - Fork 90
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
SSR breaks when adding attributes to the app wrapper div #82
Comments
@gijsroge I cannot reproduce it, no. I tried with the repo examples and it works well in both dev and prod. Can you provide a small repo with a reproduction? |
@frandiox sorry, when trying to reproduce the issue I forgot to edit the vite config and main.ts like stated in the docs.. So we can probably close this issue as it just works fine when starting a fresh project. However when we upgraded from 0.10.6 to 0.12.0 it broke our ssr output. I don't expect you to fix our issue, but do you have any tips in trying to debug this? Edit: I managed to reduce our project to the absolute bare minimum, but still have the issue. https://github.com/gijsroge/vite-ssr-issue |
Found the issue. When you have custom classes on your index.html the ssr output will fail Does not work:
Does work:
|
@gijsroge Ah I see, thanks for debugging it! That's probably related to this line: https://github.com/frandiox/vite-ssr/blob/master/src/build/utils.ts#L18 |
Yeah, sounds like a great idea. No hurry, I'm avoiding the attributes for now. Thanks for following up! |
If you just start a fresh vite project and follow the vite-ssr vue documentation. When you run
vite-ssr dev
or build an ssr version and host it, you will get an empty page source (just an empty #app<div/>
)Tried debugging it but I cannot find the cause. Is this something you can reproduce?
The text was updated successfully, but these errors were encountered: