tailwindcss CLI --watch flag does not work #10485
-
What version of Tailwind CSS are you using? v3.2.4 (The issue occurs both with the CLI installed via NPM and downloaded as a standalone MacOS binary.) What build tool (or framework if it abstracts the build tool) are you using? No build tools used. What version of Node.js are you using? 16.15.1 What browser are you using? Chromium 109.0.5414.119 What operating system are you using? MacOS Ventura 13.2 on Intel 64-bit Reproduction URL https://github.com/jakemauer/tailwind-bug-reproduction Describe your issue I've been trying to use the tailwind CLI The command I'm using is: I've tried using both the NPM-installed Tailwind binary and the MacOS binary from the releases page but neither seems to watch for changes properly. Thank you, I appreciate your work and time in taking a look at this. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
Hey! I'm not seeing issues here with your reproduction and using the command provided with Node v16.15.1. I am however not yet on Ventura which might be the culprit. If you're having problems with the macOS binary and the node script that sounds like Can you provide the full path to the directory you are testing in? I've seen problems previously with characters like commas, dots, and parenthesis causing issues with glob paths which ends up breaking file watching. |
Beta Was this translation helpful? Give feedback.
-
Dropbox is the culprit. The path I'm working from is in Dropbox and thus the full path is Interestingly I had been using |
Beta Was this translation helpful? Give feedback.
-
Following up here. It seems there is a bug in Chokidar itself that is causing these issues. We already do the proper escaping. No amount of escaping or unescaping works around this from what I've tested. I've added this to our internal backlog to investigate alternatives to Chokidar. Unfortunately this means that the only workaround at the moment is to not use a path with parens in it. Sorry :( |
Beta Was this translation helpful? Give feedback.
-
That's ok! Understanding what causes the problem and having a workaround is really all I can ask for. |
Beta Was this translation helpful? Give feedback.
-
I can confirm the same problem with Tailwind CSS 3.4.3 --watch option. After extensive experimenting with file names and paths it seems that parens in the path still causing it! |
Beta Was this translation helpful? Give feedback.
Following up here. It seems there is a bug in Chokidar itself that is causing these issues. We already do the proper escaping. No amount of escaping or unescaping works around this from what I've tested. I've added this to our internal backlog to investigate alternatives to Chokidar. Unfortunately this means that the only workaround at the moment is to not use a path with parens in it. Sorry :(