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

Latest Angular and NX #327

Open
s0l4r opened this issue Apr 2, 2024 · 0 comments
Open

Latest Angular and NX #327

s0l4r opened this issue Apr 2, 2024 · 0 comments

Comments

@s0l4r
Copy link

s0l4r commented Apr 2, 2024

Hi,

Got some issues installing a new project:

npx nx generate @nstudio/xplat:init --skipInstall --platforms web,nativescript,electron --framework angular --prefix ecs

 NX  Generating @nstudio/xplat:init

⠹ Installing packages (npm)...npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: @angular-devkit/[email protected]
npm ERR! node_modules/@angular-devkit/build-angular
npm ERR!   dev @angular-devkit/build-angular@"17.3.2" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @angular-devkit/build-angular@">= 14.0.0 < 17.0.0" from @nx/[email protected]
npm ERR! node_modules/@nx/angular
npm ERR!   dev @nx/angular@"17.0.1" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

I tried adding --skipInstall, but didn't work.

npx nx report

npx nx report

 NX   Report complete - copy this into the issue template

Node   : 21.6.2
OS     : darwin-arm64
npm    : 10.2.4

nx                 : 18.2.1
@nx/js             : 18.2.1
@nx/jest           : 18.2.1
@nx/linter         : 18.2.1
@nx/eslint         : 18.2.1
@nx/workspace      : 18.2.1
@nx/angular        : 18.2.1
@nx/cypress        : 18.2.1
@nx/devkit         : 18.2.1
@nx/eslint-plugin  : 18.2.1
@nrwl/tao          : 18.2.1
@nx/web            : 18.2.1
@nx/webpack        : 18.2.1
typescript         : 5.4.3
---------------------------------------
Community plugins:
@nstudio/angular              : 17.0.1
@nstudio/electron             : 17.0.1
@nstudio/electron-angular     : 17.0.1
@nstudio/nativescript         : 17.0.1
@nstudio/nativescript-angular : 17.0.1
@nstudio/schematics           : 17.0.1
@nstudio/web                  : 17.0.1
@nstudio/web-angular          : 17.0.1
@nstudio/xplat                : 17.0.1

When running init @nx/angular is downgraded to 17.0.1:
├── @nx/[email protected] invalid: "17.0.1" from the root project

Do you need to update xplat to support latest NX/Angular? https://github.com/nstudio/xplat/blob/main/package.json#L53

Thanks!

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

No branches or pull requests

1 participant