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.
Change package.json to install sapper version 0.28.1 "sapper": "0.28.1" (the error also occurs in 0.28.7, the current version at the time of this writing, but 0.28.1 is the earliest version I could find in which the error occurs)
Install dependencies npm i
Change rollup.config.js so that svelte does not emit css emitCss: false
Run the template npm run dev
Open chrome, enable developer options and look at the network tab
Visit localhost:3000
The first loaded page is not styled
Rolling back to sapper version 0.28.0 solves this issue.
Expected behavior
The general layout of the page should not change after loading more resources / the first loaded page should contain inlined css.
Severity
Blocking an upgrade to sapper versions greater than 0.28.0
The text was updated successfully, but these errors were encountered:
@njbotkin your issue is a different one if you have emitCss: true. I found the issue with emitCss: false and have sent a PR to fix it. I have not seen any issues with emitCss: true. Can you file a new issue with a way to reproduce or share a sample site where this is happening or give more details of some sort?
@njbotkin 0.28.8 has been released with additional fixes. If you are still having an issue with the latest version please let me know and give me more details about how I can see the issue
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
There is a flash of unstyled content when using sapper version 0.28.1 or later (setting
emitCss: false
).To Reproduce
npx degit "sveltejs/sapper-template#rollup" my-app
"sapper": "0.28.1"
(the error also occurs in 0.28.7, the current version at the time of this writing, but 0.28.1 is the earliest version I could find in which the error occurs)npm i
rollup.config.js
so that svelte does not emit cssemitCss: false
npm run dev
localhost:3000
Rolling back to sapper version 0.28.0 solves this issue.
![image](https://user-images.githubusercontent.com/49309285/93667406-dcc95d80-fa85-11ea-83db-0c468722a38d.png)
Expected behavior
The general layout of the page should not change after loading more resources / the first loaded page should contain inlined css.
Severity
Blocking an upgrade to sapper versions greater than 0.28.0
The text was updated successfully, but these errors were encountered: