-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
tailwindcss: "Can't resolve 'tailwindcss'" error occurs when attempting to build CSS file #205505
Comments
Is this still happen? My brand-new installation of m4 pro 15.3 |
Yes, still running into this |
I can reproduce the error following the steps provided, with a fresh install of |
Thanks for the report, this looks like an upstream issue where the CLI assumes it can resolve the $ cd "$(mktemp -d)"
$ npx -p @tailwindcss/cli tailwindcss --watch
Error: Can't resolve 'tailwindcss' in ... I assume this is unintentional. Their standalone binary uses different resolution logic and so isn't affected. Someone has already raised a discussion tailwindlabs/tailwindcss#15873 but I don't see a bug report yet |
I'm wondering if it makes sense to package their standalone binaries instead of doing a global install like is being done now? Not familiar with the packaging practices or policies of homebrew, but at least from testing it seems doing a global npm install of v3 still leaves me without the typography plugin able to be resolved, which was working in the version of v3 packaged by homebrew, and I'm not able to find any references to globally installing tailwind, so I'm wondering if doing a global install of tailwind's NPM package was ever properly supported by them |
The standalone CLI doesn't look like it will meet Homebrew's acceptable formula/cask requirements. Formulae in New casks in ❯ codesign --verify tailwindcss-macos-arm64
tailwindcss-macos-arm64: main executable failed strict validation If you can get upstream to sign binaries, then can be considered for a new cask. |
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
brew doctor
output saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
I am attempting to use the version of the Tailwind CLI available through Homebrew to bundle a CSS file for my project using Tailwind. Since upgrading to V4, this no longer works. It does, however, work through the latest release of the CLI downloaded from their GitHub
What happened (include all command output)?
What did you expect to happen?
I expected the file to build successfully, as occurs with the version of the Tailwind CLI file I downloaded from the GitHub release (https://github.com/tailwindlabs/tailwindcss/releases/tag/v4.0.0)
Step-by-step reproduction instructions (by running
brew
commands)Create a new directory to perform repro in
Create an index.css containing the bare minimum to use Tailwind
Install Tailwind via brew (
brew install tailwindcss
)Attempt to build your index.css (
tailwindcss -i index.css -o output.css
)You should get the error
Error: Can't resolve 'tailwindcss' in <current working directory>
./tailwindcss-macos-arm64 -i index.css -o output.css
)You should not get an error, and
output.css
should be generated successfullyI have had another person test this and confirm they were able to reproduce the same
The text was updated successfully, but these errors were encountered: