Describe the bug
Webpack 5.75.0 compiled with 1 error after installing and intitailzation electron.
Error message: "
ERROR in main.preload
Module not found: Error: Can't resolve 'apps/icc-front-electron/src/app/api/main.preload.ts' in '/Users/denisvoronin/Documents/dev/icc-front-monorepo'
Did you mean './apps/icc-front-electron/src/app/api/main.preload.ts'?
Requests that should resolve in the current directory need to start with './'.
Requests that start with a name are treated as module requests and resolve within module directories (node_modules).
If changing the source code is not an option there is also a resolve options called 'preferRelative' which tries to resolve these kind of requests in the current directory too.
resolve 'apps/icc-front-electron/src/app/api/main.preload.ts' in '/Users/denisvoronin/Documents/dev/icc-front-monorepo'
"
To Reproduce
Steps to reproduce the behavior:
Update nx from 15.8.5 to 15.9.2
Install nx-electron 15.0.0
Init electron app on ready react app via nx g nx-electron:app <electron-app-name> --frontendProject=<frontend-app-name>
Press Enter on the question: "In which directory should the electron application be generated?"
Serve app via nx build <electron-app-name>
Expected behavior
Webpack 5.75.0 compiled without errors
Desktop (please complete the following information):
Describe the bug Webpack 5.75.0 compiled with 1 error after installing and intitailzation electron.
Error message: " ERROR in main.preload
Module not found: Error: Can't resolve 'apps/icc-front-electron/src/app/api/main.preload.ts' in '/Users/denisvoronin/Documents/dev/icc-front-monorepo'
Did you mean './apps/icc-front-electron/src/app/api/main.preload.ts'?
Requests that should resolve in the current directory need to start with './'.
Requests that start with a name are treated as module requests and resolve within module directories (node_modules).
If changing the source code is not an option there is also a resolve options called 'preferRelative' which tries to resolve these kind of requests in the current directory too.
resolve 'apps/icc-front-electron/src/app/api/main.preload.ts' in '/Users/denisvoronin/Documents/dev/icc-front-monorepo' "
To Reproduce Steps to reproduce the behavior:
nx g nx-electron:app <electron-app-name> --frontendProject=<frontend-app-name>
nx build <electron-app-name>
Expected behavior Webpack 5.75.0 compiled without errors
Desktop (please complete the following information):