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
[NEXT-667] Next 13 + Tailwind hot-reload of classes doesn't work in Firefox Browser #44782
Comments
I use firefox and this happens to me too. While trying Chrome, I noticed that, after a fast-refresh, the scroll position was reset because the styles are removed for a moment. Not sure how related this is to this issue. |
I've also noticed Chrome completely turning white for a split-second when hot-reloading, which I didn't ever recall in any version of next on Firefox. Thought I just overlooked it, but I guess it somewhat is different. |
Since Next 13.0.5 fast-refresh doesn't actually seem to refresh the tailwind classes on Firefox. I've tried all versions of Next after 13.0.4 (not the canary releases), but no luck. I've tried it on the default release of Firefox and on the Developer Edition of Firefox but it only seems to work when I use Chrome or Safari. So I guess downgrade to 13.0.4 for now if you want it to properly fast-refresh. |
Just a heads up to all of you. Even if you downgrade to the v13.0.4, while you're developing the window(browser) will be updated when you change your CSS, but if you watch close in Firefox, inside the devtools, that specific CSS value that you just changed, was not updated. You can try and see it right now with any Next, React, Vite versions or whatever. I'm not sure if it is a bug or a feature that just works on Chrome. 8 months I reported it to the Firefox bug team, but no updates so far... Here a vanilla js example that was made by the Firefox team to show it. Open in both browsers and watch the devtools behaviour: https://bug1776831.bmoattachments.org/attachment.cgi?id=9283174 The reason I'm posting it here is first, to make you all aware, and second, I'm not sure if it's related or/if you will be able to fix it in the React side. Hope it helps! ✌️ |
Thanks @clovis-rosa, I've commented in the Firefox bug that it might cause this issue. |
This issue seems to be independent of TailwindCSS when using appDir. I simply created a new project using create-next-app with appDir enabled and then tried changing the |
currently experiencing in chrome as well |
What does "closed as not planned" mean here? This will be a permanent bug? |
Bug in our sync to linear and back, it was closed as a duplicate of another issue. It's closed as a duplicate of #43396. |
Ah I see, thanks! |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue
https://github.com/vercel/app-playground
To Reproduce
npm run dev
Describe the Bug
Pretty much the exact same bug has already been brought up and fixed, but it doesn't seem like the fix has worked for Firefox users, as they still complain on the issue and one user figured that it seems to be related to Firefox and I could confirm that the issue doesn't appear on Chrome. (#43878)
Hot reloading of Tailwind CSS in Firefox when you change classes in your code doesn't work.
Only works after you apply a new class and manually reload the page or restart.
Hot reloading of the class will only work if it existed before, but not if it has to be generated.
Expected Behavior
Swapping Tailwind classes from elements should work in Firefox when hot-reloading and properly generate them accordingly.
Which browser are you using? (if relevant)
Not working in Firefox 108.0.2 (64-bit); Working in Chrome 110.0.5481.30 (Offizieller Build) dev (64-Bit)
How are you deploying your application? (if relevant)
next run dev
NEXT-667
The text was updated successfully, but these errors were encountered: