tailwindcss
tailwindcss copied to clipboard
Tailwind HMR does not work with Next.js with symlinks
What version of Tailwind CSS are you using?
3.4.1
What build tool (or framework if it abstracts the build tool) are you using?
Next.js 14.2.1 with tailwind 3.4.1
What version of Node.js are you using?
v20.9.0
What browser are you using?
Chrome
What operating system are you using?
macOS
Reproduction URL
https://github.com/nahtnam/tailwind-symlink-bug
Describe your issue
- Clone the above repo
- Start the server
- Go to the prose and add
prose-sm
,prose-lg
, orprose-xl
. It will not generate the class name. If you restart the server it does. You can also do something likepy-[100px]
- Remove the folder
src/app/(symlink)
(which contains a symlink) - Now add or change the prose sizing and it works fine