-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Problem with invalid classname in custom CSS using @apply when watching #9798
Comments
Hey! If you can provide a reproduction it’ll make it a lot easier for us to look into this and figure out what the issue is. As a general rule we close issues that don’t include a reproduction as mentioned in the issue template. |
Cheers adam, i'll see if I can recreate this in a small standlone zip |
@adamwathan i've updated the original issue with a zip and steps to reproduce. Thanks. |
Awesome thank you! Will take a look tomorrow 👍🏻 |
Hey, thanks for reporting this. I've added explicit logging to make sure we're not relying on any automatic logging from promise rejections (which seemingly doesn't always work). This will be in our insiders build that should be published in a few minutes: |
Thanks for addressing this so promptly, it's much appreciated. |
What version of Tailwind CSS are you using?
Tailwind 3.2.3
What version of Node.js are you using?
For example: v19.0.1
What browser are you using?
n/a
What operating system are you using?
macOS 12.6
Steps to reproduce
Download the small example test project:
tailwind-crash.zip
Follow the instructions in the
README.md
Describe your issue
I use a pretty basic setup with CLI scripts in
package.json
like this:Since the JIT, i mainly just use
dev
script to compile my CSS while watching. The normal and expected behavior when accidentally typing an invalid classname, was the the compiler would see the change, attempt to recompile and spit out an error indicating the line number and invalid class in question. For a few weeks i've noticed that I would not get this neat output, rather it would stack-trace, and I would have to scroll up in the terminal to find the first line that indicated the file, line number and the class in question that was in valid.For the past couple of days I've noticed that rather than this stack trace, the compile just gets stuck after the
Rebuilding...
text is output. No errors, no messages. Fixing the bad class, causes the file to recompile again with theDone in XXms
message. I now have to notice it got stuck manually exit out of the watch, then manually run the command again from CLI to get the stacktrace that I can then scroll back to find the bad classname.I've updated everything i can think of, including moving from Node 18 to latest Node 19.0.1. I get this error over multiple projects, so it's not just this one instance. Is there any known issues with the latest version of
PostCSS
or is this coming fromtailwindcss
specifically?Example of the partial StackTrace when running:
The text was updated successfully, but these errors were encountered: