bennymeg / nx-electron

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

nx-electron is incompatible with the latest nx version 18.0.4 #279

Closed abelabbesnabi closed 4 months ago

abelabbesnabi commented 4 months ago

Describe the bug I installed a new mono-repo with nx but nx-electron can't be added.

To Reproduce Steps to reproduce the behavior:

  1. Type: npx create-nx-workspace@latest (It will install 18.0.4)
  2. Go in the folder of the app created
  3. Type: npm i -D nx-electron

Error: npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: @platform/source@0.0.0 npm ERR! Found: @nx/workspace@18.0.4 npm ERR! node_modules/@nx/workspace npm ERR! dev @nx/workspace@"18.0.4" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @nx/workspace@"^17" from nx-electron@17.0.1 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! A complete log of this run can be found in: C:\Users\me\AppData\Local\npm-cache_logs\2024-02-15T03_12_46_542Z-debug-0.log Expected behavior nx-elctron should install normally

Screenshots image

Desktop (please complete the following information):

Additional context Blocker :(

faribauc commented 4 months ago

@abelabbesnabi I'm running NxElectron 17.0.1 on Nx 18.0.7. Maybe whatever caused this issue has been fixed since 18.0.4.

bennymeg commented 4 months ago

use the latest alpha version.