bennymeg / nx-electron

Electron schematics for nrwl nx platform
Apache License 2.0
307 stars 82 forks source link

Can't install on nx 16.10.0 #259

Closed victorcarvalhosp closed 8 months ago

victorcarvalhosp commented 8 months ago

Describe the bug I'm trying to install this library using npm i -D nx-electron, but the installation fails with the following message:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: streamline-mono@5.0.40
npm ERR! Found: tslib@2.6.2
npm ERR! node_modules/tslib
npm ERR!   dev tslib@"^2.6.2" from the root project
npm ERR!   tslib@"^2.3.0" from @nx/workspace@16.10.0
npm ERR!   node_modules/@nx/workspace
npm ERR!     dev @nx/workspace@"16.10.0" from the root project
npm ERR!     peer @nx/workspace@">=16.0.0" from nx-electron@16.0.0
npm ERR!     node_modules/nx-electron
npm ERR!       dev nx-electron@"*" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer tslib@"2.5.2" from nx-electron@16.0.0
npm ERR! node_modules/nx-electron
npm ERR!   dev nx-electron@"*" 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.
npm ERR! 
npm ERR! 

To Reproduce Steps to reproduce the behavior:

  1. Have a workspace using nx 16.10.0
  2. try to install npm i -D nx-electron
  3. installation fails

Expected behavior Installation should be successful

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context When we were using nx v15 the lib worked fine, but after updating to nx16.10.0 we can't install this lib anymore.

victorcarvalhosp commented 8 months ago

sorry for that, as clearly shown in the message the problem was my tslib version, not related to nx or nx-electron.