Skip to content

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

@real-az

Description

@real-az

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions