-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Labels
outdatedpriority: mediumMedium Priority (not high, not low priority)Medium Priority (not high, not low priority)scope: angularIssues related to Angular support in NxIssues related to Angular support in Nxtype: bug
Description
Current Behavior
Updating an Angular NX workspace to 21.3.1 or 21.3.2 OR creating a new workspace causes NPM dependency conflicts with Jest.
Expected Behavior
I expect a newly created workspace to install without problems.
GitHub Repo
No response
Steps to Reproduce
Create a new Angular workspace with those parameters:
> npx [email protected] nx-angular-app --preset=angular-monorepo
√ Application name · nx-angular-app
√ Which bundler would you like to use? · esbuild
√ Default stylesheet format · scss
√ Do you want to enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering)? · No
√ Which unit test runner would you like to use? · jest
√ Test runner to use for end to end (E2E) tests · cypress
√ Which CI provider would you like to use? · skip
√ Would you like remote caching to make your build faster? · skip
Run npm install and you get those errors:
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/jest
npm error dev jest@"^30.0.2" from the root project
npm error peer jest@"^29.0.0 || ^30.0.0" from [email protected]
npm error node_modules/ts-jest
npm error dev ts-jest@"^29.4.0" from the root project
npm error ts-jest@"^29.3.0" from [email protected]
npm error node_modules/jest-preset-angular
npm error dev jest-preset-angular@"~14.6.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer jest@"^29.0.0" from [email protected]
npm error node_modules/jest-preset-angular
npm error dev jest-preset-angular@"~14.6.0" from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/jest
npm error peer jest@"^29.0.0" from [email protected]
npm error node_modules/jest-preset-angular
npm error dev jest-preset-angular@"~14.6.0" from the root project
...
Nx Report
Node : 22.15.0
OS : win32-x64
Native Target : x86_64-windows
npm : 10.9.2
nx (global) : 21.3.2
nx : 21.3.2
@nx/js : 21.3.2
@nx/jest : 21.3.2
@nx/eslint : 21.3.2
@nx/workspace : 21.3.2
@nx/angular : 21.3.2
@nx/cypress : 21.3.2
@nx/devkit : 21.3.2
@nx/eslint-plugin : 21.3.2
@nx/module-federation : 21.3.2
@nx/rspack : 21.3.2
@nx/web : 21.3.2
@nx/webpack : 21.3.2
typescript : 5.8.3
---------------------------------------
Registered Plugins:
@nx/cypress/plugin
@nx/eslint/plugin
---------------------------------------
Community plugins:
angular-eslint : 20.1.1
---------------------------------------
Cache Usage: 0.00 B / 190.61 GBFailure Logs
Package Manager Version
No response
Operating System
- macOS
- Linux
- Windows
- Other (Please specify)
Additional Information
No response
Metadata
Metadata
Assignees
Labels
outdatedpriority: mediumMedium Priority (not high, not low priority)Medium Priority (not high, not low priority)scope: angularIssues related to Angular support in NxIssues related to Angular support in Nxtype: bug