Open edcamcam opened 4 years ago
Additional information: After uninstalling, rebuild and reinstall the APP with the same name will surely reproduce the error. I have tried rebuilding from another dev folder and reinstalling under a different name, it might work, but after restarting the pc, the whole error will repeat once again
Describe the bug I am building an vue-cli-electron app that uses pm2 and nedb. it is mainly to use pm2 to start external .js script provided the path, and also nedb to store the saved configurations. The code works fine when I use electron:serve, but when i use electron:build, the app will work fine for a while, but after restarting the pc, the app will no longer work (including the external modules), and will repeated open multiple instances of the app.
To Reproduce Steps to reproduce the behavior: In vue.config.js,
In background.js ,
In setup.js, //where the script is saved and use pm2 to start
Environment (please complete the following information):
I have tried requestSingleInstanceLock of electron to solve the issue. although it can restrict the spawning of the multiple instances, but my app is non functional, both nedb and pm2 cant be used.
i checked on the pm2 log, and this is the problem (node:2085) ProtocolDeprecateCallback: The callback argument of protocol module APIs is no longer needed. (node:2090) ProtocolDeprecateCallback: The callback argument of protocol module APIs is no longer needed. (node:2096) ProtocolDeprecateCallback: The callback argument of protocol module APIs is no longer needed. (node:2102) ProtocolDeprecateCallback: The callback argument of protocol module APIs is no longer needed. (node:2109) ProtocolDeprecateCallback: The callback argument of protocol module APIs is no longer needed. (node:2114) ProtocolDeprecateCallback: The callback argument of protocol module APIs is no longer needed. (node:2119) ProtocolDeprecateCallback: The callback argument of protocol module APIs is no longer needed.
I have run and build this app on windows and there is not a single problem. The problem only appears when i build it and run it on Mac