-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
with Vite 5 prerendered pages are missing CSS #11390
Comments
Please include a minimal reproduction instead of your entire project. |
I finally found the root cause for this issue. my env:
output: {
preloadStrategy: 'preload-mjs'
}, after I remove lesson learned: while using
|
Thanks for posting your findings. I think it’s worth it to keep this open since it should still prerender correctly even with that preload strategy |
Might be related: #11428 |
Describe the bug
I am using Kit 2 and Vite 5, when I
build
thenpreview
prerendered
pages are missing CSS lines in HTMLwhen I switch back, to Vite 4.5.0 (still keeping kit 2 changes) there are getting generated. e.g.,
![image](https://private-user-images.githubusercontent.com/627951/291436804-f2bbc45b-7e14-4d82-96f2-890b8de435f3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE4MjI2OTIsIm5iZiI6MTcyMTgyMjM5MiwicGF0aCI6Ii82Mjc5NTEvMjkxNDM2ODA0LWYyYmJjNDViLTdlMTQtNGQ4Mi05NmYyLTg5MGI4ZGU0MzVmMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzI0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyNFQxMTU5NTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hMzBiZmZiZmM4ZjI2NWVmNjRjMzMwOGFhYmFmMmM5ZTg5YWEzMzU0Y2U0N2RjOTQ3ZWZlMGM4ZGUxN2Q2OWQ1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.0v6ynVqn3454tjds0oV-ZzyhTWE1uOxuYzCXlPeXYSg)
Reproduction
Repo: https://github.com/xmlking/spectacular/tree/main/apps/console-fb
to reproduce:
4.5.1
to5.0.10
inapps/console-fb/package.json
pnpm i
turbo build --filter=console-fb
turbo preview --filter=console-fb
You will get distorted page due to missing CSS
Logs
System Info
Severity
serious, but I can work around it
Additional Information
N/A
The text was updated successfully, but these errors were encountered: