Good morning,
I have created a program in Vue JS, this connects with an API that I have created in a main.js file to execute system commands.
The problem I have is that when compiling for production with electron I get the following error:
I use the command npm run electron: build
When I use npm run electron:serve work without problems
Anyone have any idea why is the error and how to fix it? Thanks
I experienced this issue a few days ago as well. I realized that trying to fix another issue, I deleted the node_modules
folder and the package-lock.json
file, then run the npm install
command. This made the build to fail with 'fs/promises'. There are 2 solutions to this issue:
node_modules
folder and bring back the old package-lock.json
file to ensure that the package versions remain the same. Then run the npm install
command and the issue should be fixed.downgrade electron "electron-builder": "^22.10.5", or upgrade nodejs to 14+ v
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With