Hey, I changed the compilation output directory on the esbuild.config.json by the '--esbuild-config-file' option and, while esbuild does compile my code on the correct dir, I believe the electron command called by elecrun is still expecting the code to be on the normal output directory (as per the README: "dev command save the build artifact to node_modules/.electron-run/app").
So it gives an error:
Error launching app
Unable to find Electron app at /home/gabriel/Documents/VSCode/my_projects/muse/node_modules/.electron-run/app
Cannot find module '/home/gabriel/Documents/VSCode/my_projects/muse/node_modules/.electron-run/app'
Require stack:
- /home/gabriel/Documents/VSCode/my_projects/muse/node_modules/electron/dist/resources/default_app.asar/main.js
-
Electron exited with code 1
And I've found no way to change the directory electron should take to start. Is there a way? If not, how could one introduce this option on this project?
Hey, I changed the compilation output directory on the esbuild.config.json by the '--esbuild-config-file' option and, while esbuild does compile my code on the correct dir, I believe the
electroncommand called by elecrun is still expecting the code to be on the normal output directory (as per the README: "devcommand save the build artifact tonode_modules/.electron-run/app").So it gives an error:
Error launching app Unable to find Electron app at /home/gabriel/Documents/VSCode/my_projects/muse/node_modules/.electron-run/app Cannot find module '/home/gabriel/Documents/VSCode/my_projects/muse/node_modules/.electron-run/app' Require stack: - /home/gabriel/Documents/VSCode/my_projects/muse/node_modules/electron/dist/resources/default_app.asar/main.js - Electron exited with code 1And I've found no way to change the directory
electronshould take to start. Is there a way? If not, how could one introduce this option on this project?