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

PNPM Catalogs are not supported #30035

Open
1 of 4 tasks
HaasStefan opened this issue Feb 13, 2025 · 2 comments · May be fixed by #30036
Open
1 of 4 tasks

PNPM Catalogs are not supported #30035

HaasStefan opened this issue Feb 13, 2025 · 2 comments · May be fixed by #30036

Comments

@HaasStefan
Copy link
Contributor

Current Behavior

When I run nx generate plugin it throws the following error:

NX The package.json lists a version of typescript that Nx is unable to validate - (catalog:my-catalog)

With this typescript dependency in my package.json:

    "typescript": "catalog:my-catalog",

Expected Behavior

In a PNPM workspace utilizing the catalogs feature, Nx should not validate for a valid semver.

GitHub Repo

No response

Steps to Reproduce

  1. pnpm workspace
  2. use catalogs
  3. run nx g plugin

Nx Report

failed

Failure Logs

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

@bandzaitis
Copy link

Can confirm. I'm getting the same error when using catalog: in then root package.json.

@HaasStefan
Copy link
Contributor Author

@bandzaitis as a quick workaround, you can patch the change from my PR into the node_modules semver validate function to have an early return.

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