You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have a frontend project and an electron project generated with nx g nx-electron:app <electron-app-name> --frontendProject=<frontend-app-name>
Running nx run <electron-app-name>:make [--options] the .exe generated is blank
In the console I see this error: Error: NG0203: inject() must be called from an injection context such as a constructor, a factory function, a field initializer, or a function used with runInInjectionContext related to platformBrowserDynamic().bootstrapModule(AppModule).catch(err => console.error(err)); in main.ts file
In the app console I see that node modules js files from the frontend project are not loaded.
However if I unpack app.asar (or if i run make command with --asar=false) and I go to the folder I can see that js files are there
Expected behavior
Expect to have the js files loaded and to have the exe working correctly
Desktop:
OS: Windows
Nx Electron Version : 16.0.0
The text was updated successfully, but these errors were encountered:
Describe the bug
I have a frontend project and an electron project generated with
nx g nx-electron:app <electron-app-name> --frontendProject=<frontend-app-name>
Running
nx run <electron-app-name>:make [--options]
the .exe generated is blankIn the console I see this error:
Error: NG0203: inject() must be called from an injection context such as a constructor, a factory function, a field initializer, or a function used with runInInjectionContext
related toplatformBrowserDynamic().bootstrapModule(AppModule).catch(err => console.error(err));
in main.ts fileIn the app console I see that node modules js files from the frontend project are not loaded.
However if I unpack app.asar (or if i run make command with --asar=false) and I go to the folder I can see that js files are there
Expected behavior
Expect to have the js files loaded and to have the exe working correctly
Desktop:
The text was updated successfully, but these errors were encountered: