-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot run <app-name>-electron:make #247
Comments
Have the same issue. |
For both your
instead of:
That way they're both emitting to the root |
Hi, I also struggled with similar problem on We had the following set up
When created the frontEndApp(built on React) and the electronApp, nx-electron will asked if you want to use the The names we provided were:
the final
So when we run
instead of:
Clearly the first directory does not exist and I would get the exact same error that you are getting ( The problem here is the
to
and all other references in the project should be updated. For example, one of the changes we had to make in the electron-app's project.json file was as follows:
to
The other option is to create the apps from scratch and select the I hope all this makes sense, Let me know if you need any additional information or if it solves your issue. |
Describe the bug
After upgrading from v.13 to v.16 I cannot build the electron app.
Expected behavior
Running
nx run <app-name>-electron:make
makes an electron executable.Desktop (please complete the following information):
Additional context
I've been assigned to an existing project which uses nx, react and electron. The project was running nx 13. I've upgraded everything to v.16. Nx electron was upgraded to v16.0.0-beta.1.
After upgrading I cannot run
nx run <app-name>-electron:make
. I am getting this error:ENOENT no such file or directory '/home/<user>/code/<project-dir>/dist/packages/<app-name>-electron/index.js'
.The electron:build command creates a folder
dist/apps/<app-name>-electron
and not thedist/packages...
folder. Also there is no index.js file in thedist/apps/<app-name>-electron
folder, but a main.js file instead. I understand that I have to set some options for the electron:make command, but setting these options in maker.options.json doesn't help.Any help would be appreciated ( I'm trying to build this thing for 3 days already
The text was updated successfully, but these errors were encountered: