-
-
Notifications
You must be signed in to change notification settings - Fork 139
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 build / use client / broken global CSS import from package #452
Comments
Thanks for reporting! This is probably hard, and we probably need to mix hoistable elements and vite css bundling. (Or, I'm not sure. 🤔 Why is Can you try |
same result - CSS not loaded in the browser I checked the files in the The CSS is not loaded in the browser. I would not give this problem a high priority as there is currently a simple fix by loading global CSS in a server component in the tree above the client side component. |
Thanks for the note. |
Ah, because Vite sends the css module through WebSocket. I think I'd leave this issue for @Aslemammad. |
Could you please assign me? |
@aheissenberger #549 should fix this. |
@Aslemammad yes this fixed it! |
Thank you so much for the update! |
#658 fixes this and it will be in v0.20.1! |
Closing this as resolved. Let us know if it's not. |
Problem:
The imported CSS from a package or normal CSS file is in the production build but not loaded in the browser.
Example:
or
pnpm waku dev
👍 - CSS is loadedpnpm waku dev --with-ssr
👍 - CSS is loadedpnpm waku build --with-ssr
👍pnpm waku start --with-ssr
👎 - imported CSS is missingNo problem, if the import is in a server component above the client component in the tree!
The text was updated successfully, but these errors were encountered: