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:
- Generate an empty nx workspace
npx create-nx-workspace@latest
- Install
yarn add -D @nrwl/react
- Create a basic react app:
nx g @nrwl/react:application test
- Install
yarn add -D nx-electron
- Create electron app:
nx g nx-electron:app test-electron --frontendProject=test
- 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
- updated readme create-nx-workspace #66 — committed to bennymeg/nx-electron by bennymeg 4 years ago
- fix: updated installed dependecies versions #66 — committed to bennymeg/nx-electron by bennymeg 3 years ago
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 thepackage.json
file. Reinstalling withnpm 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.