0👍
✅
turned out there was a configuration issue with babel inside electron that was using quasar framework, it didn’t not accept commonjs as module and hence no vanilla javascript would work.
0👍
Just had this issue myself, I know you’ve answered your own question but if you can use nodejs you can install replace-string from npm and use it
command: npm install replace-string
link:
https://www.npmjs.com/package/replace-string
This issue has literally caused me a morning of work – but hope someone finds this post and fixes this issue quicker!
Source:stackexchange.com