-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Disabling SSR prevents remaining CSS from loading #27387
Comments
Can you double-check if that also happens on nightly? |
@manniL same issue.
|
I cleared the cache and now it's working fine! |
I can confirm this is indeed a cache invalidation problem. Once solved by clearing/disabling cache, it remains solved, but it's kind of weird that it occurs in the first place. In my case I had it happen when importing css from font-awesome while |
Ahh, this is likely due to a Vite issue - IIRC, in some situations css is imported as JavaScript (which is executed and injects the CSS) vs a CSS file. There have been issues with setting the appropriate cache headers. |
Environment
Reproduction
https://stackblitz.com/~/github.com/hichem-dahi/trello-nuxt
Describe the bug
Setting
ssr: false
in nuxt config prevents remaining CSS from loading.Additional context
Works fine for Firefox 126.0 (64-bit), doesn't work for Chrome 125.0.6422.60 (Official Build) (64-bit).
![Screenshot from 2024-05-28 12-14-45](https://private-user-images.githubusercontent.com/57720465/334424881-3bae0a03-f9e4-4bc8-ad1c-e192101374ba.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxMzU5NDksIm5iZiI6MTcyMjEzNTY0OSwicGF0aCI6Ii81NzcyMDQ2NS8zMzQ0MjQ4ODEtM2JhZTBhMDMtZjllNC00YmM4LWFkMWMtZTE5MjEwMTM3NGJhLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI4VDAzMDA0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBjZGFhMWMzMzhmMjY1MTBlYTEwOTIxMDI2MzY5ZGQ5YzEzNjY4NTEzMGI3MDUyOTIzNTJmOTk1YmQ4ODZkM2EmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.mI7KBUhd0q0su86DFpP0A5kZRlUiE7OQztcYUlB0iu4)
![Screenshot from 2024-05-28 12-15-21](https://private-user-images.githubusercontent.com/57720465/334424894-ede88b47-6fc5-4824-839b-31c6a1fdec74.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxMzU5NDksIm5iZiI6MTcyMjEzNTY0OSwicGF0aCI6Ii81NzcyMDQ2NS8zMzQ0MjQ4OTQtZWRlODhiNDctNmZjNS00ODI0LTgzOWItMzFjNmExZmRlYzc0LmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI4VDAzMDA0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVjNmMyZDc5MjUwYTQzYTQxYThjODQzY2VhMTRjZWY2NGM3YTViOGQ0YTQ5Njg0NzY5YTc2MTllZDJlYjAxOTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.GqrEKaybJmNauuvnOJA-jo-cLbLl0bxkfKsXZCX2c6k)
Logs
No response
The text was updated successfully, but these errors were encountered: