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
Flash of unstyled content in generated page when using scss nuxt 3.0.0-rc.12 #15213
Comments
This is a regression of the inline styles implementation and you can work around it by setting |
This workaround breaks our styling on the initial page load. |
@BlakeB415 Would you provide a reproduction? 🙏 |
We'll do our best but we're not sure how to. We set the option like you said above and as Blake mentioned it breaks the styling on initial page load. Is there something specific we could do or provide for you? |
@kwright02 Some info here. Basically, start with your project and remove as much as you can until the problem can't be reproduced. 🙏 I have a fix for this issue in progress but want to make sure it also solves your situation. |
Ok, I'll see what I can test, any recommendations for where to start removing from? Or does it really matter? |
Try to remove as much complexity as possible, as quickly as possible. Start with your |
https://stackblitz.com/edit/github-hywqdd-nehtut?file=components/Test.vue I've narrowed it down to our use of ClientOnly. Using ClientOnly inside of a component seems to break scoped CSS on SSR when inlineSSRStyles is false. The server and client's data-v-* attributes do not seem to match up when this occurs. |
Thanks. I appreciate it. |
No problem. Also, this only seems to occur with the build and not the dev server. |
Oh my god this has taken me hours to resolve since upgrading to rc.12. The unstyled flash was extremely annoying :/ Thankfully |
this only seems to occur with the build and not the dev server. |
@danielroe when I have 3
|
Should be resolved via nuxt/framework#8666 - cannot reproduce with rc.13 anymore. |
Environment
package.json
nuxt.config.ts
Reproduction
StackBlitz minimal reproduction link
https://stackblitz.com/edit/github-hywqdd?file=app.vue
Describe the bug
At reload time it shows unstyled pages. But in the dev server, it seems fine. It only appears when I generate the project with
npm run generate
and serve withnpm run preview
Additional context
In my project, this problem doesn't appear until nuxt3 rc-11.0.0. It only starts appearing after updating my project to nuxt3 rc-12.0.0
Logs
No response
The text was updated successfully, but these errors were encountered: