bennymeg / nx-electron

Electron schematics for nrwl nx platform
Apache License 2.0
320 stars 84 forks source link

Cannot find module '@nrwl/jest' #239

Closed dmatora closed 11 months ago

dmatora commented 1 year ago

running nx g nx-electron:app test throws NX Cannot find module '@nrwl/jest'

To Reproduce Steps to reproduce the behavior:

  1. npx create-nx-workspace@15
  2. npm install -D nx-electron
  3. nx g nx-electron:app test
  4. See NX Cannot find module '@nrwl/jest'

Expected behavior Expecting nx-electron to build electron app

Desktop (please complete the following information):


Installed it manually (and few other missing dependancies) and got project working though

WillPoulson commented 1 year ago

If creating a new project at this stage I'd recommend generating an NX 16 version project and then attempting with version 16.0.0-beta.1 - Hopefully this works for you 🤞

dmatora commented 1 year ago

As mentioned at #217 , unfortunately it doesn't

bennymeg commented 11 months ago

I think nx introduces a breaking change without changing the major release. I believe that if you would downgrade nx to earlier v15 version it would be resolved. They change some of the packages from @nrwl to @nx