-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Styling disappears on second pageload in dev
when using Tailwind
#12754
Comments
I attempted to reproduce this in a plain Astro project that also uses Tailwind with |
Hmm, odd, but noting we also got another report from someone about this. One thing I’ll note is that our |
I tested a few more combinations to see if I could reproduce in other circumstances but no luck:
So does seem to be linked to Tailwind specifically somehow. Hunch: this is a dependency graph bug with HMR. The import chain here is:
So it’s a nice combo of places to potentially go wrong across virtual modules and npm module specifiers. Transferring across to the Astro monorepo as I’m pretty sure it will need fixing there (if not even higher upstream). |
About issue #2716, Astro 5.1.1 also worked well. |
What version of
starlight
are you using?0.30.2
What version of
astro
are you using?5.0.6
What package manager are you using?
npm
What operating system are you using?
Mac
What browser are you using?
Chrome
Describe the Bug
When using Tailwind and custom pages using the
StarlightPage
component, styling will disappear on the second pageload.Screen.Recording.2024-12-16.at.18.15.19.mov
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-7kjhymwh
Participation
The text was updated successfully, but these errors were encountered: