bennymeg / nx-electron

Electron schematics for nrwl nx platform
Apache License 2.0
328 stars 85 forks source link

Not possible to nx run nx-electron-app:build:production #245

Closed boyanivskyy closed 12 months ago

boyanivskyy commented 1 year ago

Describe the bug After upgrading the whole NX workspace to a newer version because of updating Angular to version 16. I'm trying to build nx run nx-electron-app:build:production I'm getting this error

   >  NX   [readCachedProjectGraph] ERROR: No cached ProjectGraph is available.

   If you are leveraging \`readCachedProjectGraph()\` directly then you will need to refactor your usage to first ensure that
   the ProjectGraph is created by calling \`await createProjectGraphAsync()\` somewhere before attempting to read the data.

   If you encounter this error as part of running standard \`nx\` commands then please open an issue on 
   https://github.com/nrwl/nx
   Pass --verbose to see the stacktrace.

Any other details can be provided during the discussion in this issue

Expected behavior Should build the application.

I have another application in my NX workspace which is a web application, not Electron and it's working perfectly fine

Desktop (please complete the following information): Ubuntu 20.04

boyanivskyy commented 1 year ago

Can someone help? When support for Angular 16 along with NX 16 version will be added?

MrTob commented 1 year ago

i need the same

OlecThunder commented 1 year ago

Try using 16.0.0-beta.1 version of nx-electron. Build works well in that version.

Rdmkr commented 1 year ago

Package 16.0.0-beta.1 did not work for me - it tries to import @angular/core with a require statement, which is not allowed. I posted an issue on this. Angular 16 support does not seem to be achieved with the current beta version.