electron-updater not working



  • I got a very weird error, Invalid Assignment in terser. When I remove electron-updater, my app can build again.



  • Funny thing is, another app uses the same code but with @quasar/app 1+ and it works.

    I’ve downgraded terser & terser-webpack-plugin, to no avail.

    electron-main.js from Terser
    Invalid assignment [electron-main.js:6882,8]
    at ee (/Users/User/Documents/sendall/node_modules/@quasar/app/node_modules/terser-webpack-plugin/node_modules/terser/dist/bundle.min.js:1:19541)
    at c (/Users/User/Documents/sendall/node_modules/@quasar/app/node_modules/terser-webpack-plugin/node_modules/terser/dist/bundle.min.js:1:28031)
    at ze (/Users/User/Documents/sendall/node_modules/@quasar/app/node_modules/terser-webpack-plugin/node_modules/terser/dist/bundle.min.js:1:50575)
    at qe (/Users/User/Documents/sendall/node_modules/@quasar/app/node_modules/terser-webpack-plugin/node_modules/terser/dist/bundle.min.js:1:50656)
    at T (/Users/User/Documents/sendall/node_modules/@quasar/app/node_modules/terser-webpack-plugin/node_modules/terser/dist/bundle.min.js:1:33927)
    at /Users/User/Documents/sendall/node_modules/@quasar/app/node_modules/terser-webpack-plugin/node_modules/terser/dist/bundle.min.js:1:29324
    at /Users/User/Documents/sendall/node_modules/@quasar/app/node_modules/terser-webpack-plugin/node_modules/terser/dist/bundle.min.js:1:28763
    at N (/Users/User/Documents/sendall/node_modules/@quasar/app/node_modules/terser-webpack-plugin/node_modules/terser/dist/bundle.min.js:1:38290)
    at /Users/User/Documents/sendall/node_modules/@quasar/app/node_modules/terser-webpack-plugin/node_modules/terser/dist/bundle.min.js:1:30375
    at /Users/User/Documents/sendall/node_modules/@quasar/app/node_modules/terser-webpack-plugin/node_modules/terser/dist/bundle.min.js:1:28763



  • I solved it! I reverted the package.json and package-lock.json files and did an npm ci then npm install --save electron-updater again and it worked! Wonder what caused it to stop working in the first place.


Log in to reply