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

The package.json lists a version of typescript that Nx is unable to validate #23089

Open
1 of 4 tasks
webia1 opened this issue Apr 30, 2024 · 2 comments
Open
1 of 4 tasks

Comments

@webia1
Copy link

webia1 commented Apr 30, 2024

Current Behavior

If a range (such as "typescript": ">=5.2.0 <5.4.0") is entered in package.json for TypeScript, the nx generator can no longer create libraries.

Expected Behavior

Nx generator should also be able to handle version ranges.

GitHub Repo

No response

Steps to Reproduce

  1. Enter a range for TypeScript in package.json like typescript": ">=5.2.0 <5.4.0"`
  2. Try to generate a library in workspace

Nx Report

NX   Report complete - copy this into the issue template

Node   : 20.12.2
OS     : darwin-arm64
npm    : 10.5.0

nx (global)        : 18.1.2
nx                 : 18.0.8
@nx/js             : 18.0.8
@nx/jest           : 18.0.8
@nx/linter         : 18.0.8
@nx/eslint         : 18.0.8
@nx/workspace      : 18.0.8
@nx/angular        : 18.0.8
@nx/cypress        : 18.0.8
@nx/devkit         : 18.0.8
@nx/esbuild        : 18.0.8
@nx/eslint-plugin  : 18.0.8
@nx/nest           : 18.0.8
@nx/node           : 18.0.8
@nx/playwright     : 18.0.8
@nx/plugin         : 18.0.8
@nx/storybook      : 18.0.8
@nrwl/tao          : 18.0.8
@nx/web            : 18.0.8
@nx/webpack        : 18.0.8
typescript         : 5.3.3
---------------------------------------
Community plugins:
ngx-toastr : 18.0.0

Failure Logs

No response

Package Manager Version

10.5.0

Operating System

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

Additional Information

If you remove the version range and enter a single version, the error disappears.

@FrozenPandaz
Copy link
Collaborator

Which generator were you running? Can you please include the error logs and a repo showcasing the error if possible? Does it reproduce in https://github.com/nrwl/nx-examples?

Copy link

This issue has been automatically marked as stale because more information has not been provided within 7 days.
It will be closed in 21 days if no information is provided.
If information has been provided, please reply to keep it active.
Thanks for being a part of the Nx community! 🙏

@github-actions github-actions bot added the stale label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants