-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
@apply causes vitejs to HMR all files until maximum call stack error. #7986
Comments
Keep in mind this is a three component example. I'm using this same setup on medium-large project and is unusable. Every time I save I get a maximum call stack error. |
So I'm not able to reproduce the maximum call stack error but I do see the list of files being much longer than necessary. I believe this is because in v3.0.23 every file with In the meantime you can use our insiders build by running |
@thecrypticace dude, I love you. This issue was driving me crazy and I can confirm using the |
Hahah YES. Glad to hear that fixes it for you! 🎉🎉 Happy to help! Closing since the issue itself is fixed. I don't know when we'll have a tagged release out next but the insiders build is sufficient to use for now. 🚀 |
the problems seems to be appearing again. With v3.2.2 everything works fine, but if I upgrade above I get broken HMR. Anyone else experiencing this? |
me too |
What version of Tailwind CSS are you using?
3.0.23
What build tool (or framework if it abstracts the build tool) are you using?
Vite 2.8.6
What version of Node.js are you using?
v17.5.0
What browser are you using?
Chrome
What operating system are you using?
macOS
Reproduction URL
brielov/react-app
Describe your issue
When using tailwindcss + vite, if you use css modules with @apply, when you save any file, it will cause an infinite HMR loop. I'm reporting this here cause this only happens while using tailwind's apply directive.
TailwindCSS config
PostCSS config
Screen.Recording.2022-03-29.at.13.40.18.mov
The text was updated successfully, but these errors were encountered: