-
-
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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwNzMxNzcsIm5iZiI6MTcyNjA3Mjg3NywicGF0aCI6Ii81NzcyMDQ2NS8zMzQ0MjQ4ODEtM2JhZTBhMDMtZjllNC00YmM4LWFkMWMtZTE5MjEwMTM3NGJhLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTExVDE2NDExN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk5MzliMWY1NjJlYjkzNTFhODk4YTk5OWU1ZmNjNjcyMzYxY2E5YTUwNmQxYzA1OTZmZTNmNzdhZjJjNGQ1NDAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.LUWKohRRVSJI4c-2PdrV2HPn0gzRc1orfg9nhHIrwm8)
![Screenshot from 2024-05-28 12-15-21](https://private-user-images.githubusercontent.com/57720465/334424894-ede88b47-6fc5-4824-839b-31c6a1fdec74.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwNzMxNzcsIm5iZiI6MTcyNjA3Mjg3NywicGF0aCI6Ii81NzcyMDQ2NS8zMzQ0MjQ4OTQtZWRlODhiNDctNmZjNS00ODI0LTgzOWItMzFjNmExZmRlYzc0LmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTExVDE2NDExN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ5YjU1MmE5NzE0M2I5M2U1YjZhMGFkMTQwMDUzNzIwMzQzYTZhYjQzYzgwMjk3MDFlMTY2MTYyNjU4MTdmNjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.F9izyG9WRb4w46MvZLS-GyU_7oUtUsAwDY9f7ZxhKQQ)
Logs
No response
The text was updated successfully, but these errors were encountered: