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 nx g nx-electron:app <electron-app-name> --frontendProject=<frontend-app-name> command is looking for a configuration in /angular.json file while running in a nx/react project configuration.
To Reproduce
Steps to reproduce the behavior:
follow README instructions in a clean project:
run npx create-nx-workspace@13
choose a react project with emotion styles
run npm install -D nx-electron
runnx g nx-electron:app <electron-app-name> --frontendProject=<frontend-app-name>
this will result an error which already defined here issue 146
issue resolved after adding those missing modules
once fixing the above issues a new error is prompt: Error: Cannot find configuration for 'app-client' in /angular.json. at readProjectConfiguration (/Users/me/Documents/GitHub/my-project/node_modules/nx/src/generators/utils/project-configuration.js:154:15) at addProxy (/Users/me/Documents/GitHub/my-project/node_modules/nx-electron/src/generators/nx-electron/generator.js:100:65) at /Users/me/Documents/GitHub/my-project/node_modules/nx-electron/src/generators/nx-electron/generator.js:168:13 at Generator.next (<anonymous>) at fulfilled (/Users/me/Documents/GitHub/my-project/node_modules/tslib/tslib.js:115:62) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) Cannot find configuration for 'app-client' in /angular.json.
Expected behavior
project configuration should be found in my-app/project.json and not in my-app/angular.json file
Desktop (please complete the following information):
OS: MacOS Monterey
Nx Electron Version 13.1.0
Additional context
Thanks!!!
The text was updated successfully, but these errors were encountered:
I thought issue 146 was fixed, did you remember if the requested packages was installed when the error appeared?
readProjectConfiguration() is part of the nx devkit, so I suspect it might be an issue with nx.
could you try creating an @nrwl/node app and see if the error exist as well?
Describe the bug
nx g nx-electron:app <electron-app-name> --frontendProject=<frontend-app-name>
command is looking for a configuration in /angular.json file while running in a nx/react project configuration.To Reproduce
Steps to reproduce the behavior:
follow README instructions in a clean project:
npx create-nx-workspace@13
npm install -D nx-electron
nx g nx-electron:app <electron-app-name> --frontendProject=<frontend-app-name>
Error: Cannot find configuration for 'app-client' in /angular.json. at readProjectConfiguration (/Users/me/Documents/GitHub/my-project/node_modules/nx/src/generators/utils/project-configuration.js:154:15) at addProxy (/Users/me/Documents/GitHub/my-project/node_modules/nx-electron/src/generators/nx-electron/generator.js:100:65) at /Users/me/Documents/GitHub/my-project/node_modules/nx-electron/src/generators/nx-electron/generator.js:168:13 at Generator.next (<anonymous>) at fulfilled (/Users/me/Documents/GitHub/my-project/node_modules/tslib/tslib.js:115:62) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) Cannot find configuration for 'app-client' in /angular.json.
Expected behavior
project configuration should be found in my-app/project.json and not in my-app/angular.json file
Desktop (please complete the following information):
Additional context
Thanks!!!
The text was updated successfully, but these errors were encountered: