You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
This happens when there are styles in App.html or a component used in App.html. Normally a style block is added to the head when the route is loaded... but this doesn't happen on error pages.
I'm going to wait until #308 drops since it may inadvertently fix this. If it's still an issue afterwards then I'll create a minimal repro.
After a bit of debugging, I figured it out! I'm using sapper-template and in my server.config.js I had a Svelte style preprocessor which returned nothing.
It didn't occur to me that the SSR styles were used to generate <style> blocks in the head. Once I set up style preprocessing the same as client.config.js then things are now working as expected.
Since Sapper
v0.14.0
component styles are missing on error pages. I assume it's related to #300.The text was updated successfully, but these errors were encountered: