-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
CSS for $error.svelte not built, not applied #920
Comments
Seeing the same thing with tailwindcss. Works fine on EDIT: When I have ssr: true it works. When it's false no styles get loaded. I'll raise a seperate issue. |
I have the same issue. No styles in $error page on first load, but if I send a user there via endpoint or load function like so |
css are not working in the page because of sveltejs/kit#920
It seems the issue was fixed when I can replicate the problem with version npm install @sveltejs/kit@1.0.0-next.72 Updating the library to a more recent version should work. |
Tried it yesterday evening and I confirm it works. Closing the issue. |
Describe the bug
When building for production, the error page will show without any styling.
Logs
To Reproduce
Here's my
$error.svelte
:Nothing is applied, not
app.scss
nor the rules in the style tag.Expected behavior
When building for production, the 404 page should be styled.
Information about your SvelteKit Installation:
Diagnostics
npx envinfo --system --npmPackages svelte,@sveltejs/kit,vite --binaries --browsers
Severity
I'd say it's ok while sveltekit is in beta, but it should be fixed before stable. I think it may hinder adoption.
The text was updated successfully, but these errors were encountered: