-
Notifications
You must be signed in to change notification settings - Fork 4.5k
[v4.1.3] Saved changes not reflected between hot-reloads / refreshes #17612
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
Comments
Update:
|
Can confirm this being an issue with |
+1 confirm here as well:
the only difference that its not working for me with |
+1 confirm, hot reload not working on tailwind event if I restart my only after I remove .next it will regenerate new css. is there any work around ? or did I overlook something? |
Same issue here, the styles are not loaded in correctly. I have the manually refresh for it to pickup the new colors. tailwind 4.1.3 and next 15.3 |
Same here, anyone have a version of tailwind and nextjs that would work? 🤔 |
I managed to resolve the issue by disabling turbopack dev mode |
I'm not sure if this is directly related to this PR, but after updating to Tailwind v4.1.3 which includes this change, I'm still not seeing changes reflected on each hot reload (but sometimes it works!), forcing me to restart my dev server for simple className changes in any context. For some reason Tailwind isn't picking up on new utilities being used. I haven't fully pinned down the cases where it's happening, but it's difficult to reproduce reliably.
Most recently, I changed the ordering inside a
clsx
+tailwind-merge
call (cn
), to change a string className, and move aclassName
prop value at the end:No hot reload and no update after a hard refresh, but after restarting the dev server, my change looked correct. Note that
getMyClassnames(...)
is returning a string of Tailwind classes.Project details:
46 and Turborepo, with SWC pluginEnvironment:
4.5.66.2.5Overall things are working fine. If upgrading Vite or Turbo is necessary to squash some of this behavior, happy to do it, but it may be quite a lift for us depending on how smoothly that goes.
I don't currently have time to put together a repro repo, but if my schedule opens up I may give it a shot. I'm more curious if anyone else is experiencing this with the latest version.
Originally posted by @andymerskin in #17554 (comment)
The text was updated successfully, but these errors were encountered: