Skip to content
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

CLI fails because of missing 'micromatch' dependency in package.json when using Yarn Modern with PNP #9619

Closed
real-az opened this issue Oct 20, 2022 · 1 comment · Fixed by #9620
Assignees

Comments

@real-az
Copy link

real-az commented Oct 20, 2022

What version of Tailwind CSS are you using?

v3.2.0

What version of Yarn are you using?

3.2.4

Describe your issue

v3.2.0 adds the 'micromatch' dependency in the code but does not have it in the package.json file which causes Yarn Modern with PNP to fail calls to CLI:

yarn tailwindcss --version
fails with
Error: tailwindcss tried to access micromatch, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound. Required package: micromatch

Proposed solution

Add the 'micromatch' package to dependencies in package.json.

@RobinMalfait
Copy link
Contributor

Hey! Thank you for your bug report!
Much appreciated! 🙏

This should be fixed by #9620, and will be available in the next release.

You can already try it by using the insiders build npm install tailwindcss@insiders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants