nx-electron: Unable to use nx-electron

Describe the bug I cannot create an electron app by following the instruction in the README.md file.

To Reproduce Steps to reproduce the behavior:

  1. Generate an empty nx workspace npx create-nx-workspace@latest
  2. Install yarn add -D @nrwl/react
  3. Create a basic react app: nx g @nrwl/react:application test
  4. Install yarn add -D nx-electron
  5. Create electron app: nx g nx-electron:app test-electron --frontendProject=test
  6. See error below
Unable to resolve nx-electron:app.
 in JSON at position 1480

The behavior is the same if 10.0.0-beta.1 or 9.3.2 is installed.

Expected behavior The command should generate a nx-electron application

Desktop:

  • OS: Window 10
  • nx: 11.0.16

EDIT: clarified the error message

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 22 (12 by maintainers)

Commits related to this issue

Most upvoted comments

@bennymeg is there a timeline yet for supporting version 11 of NX?

Thank to @pascalbayer you will have a v11 released soon.

@shlajin Thanks for that detailed description. I’ve been able to identify the issue. nx g nx-electron:app electron --frontendProject=renderer puts the latest stable version back into the package.json file. Reinstalling with npm i nx-electron@11.0.0-alpha.0 --dev solves this but I can still reproduce the original error, trying to implement a fix for it.

@bennymeg is there a timeline yet for supporting version 11 of NX?

It seems we have mixed here two different issues. The original issue have been resolved, so will close this issue for now.

Feel free to finish you discussion here, but I think it will be more organized if we will move this discussion to #76.