Electron Build fails: (node:50952) UnhandledPromiseRejectionWarning: TypeError: bundler is not a function
I keep getting this Error:
(node:50952) UnhandledPromiseRejectionWarning: TypeError: bundler is not a function - index.js:115 Promise [data-recorder]/[@quasar]/app/lib/electron/index.js:115:13 - new Promise - index.js:110 Promise.then.then [data-recorder]/[@quasar]/app/lib/electron/index.js:110:14 - next_tick.js:77 process.internalTickCallback internal/process/next_tick.js:77:7
when building my electron app with quasar.
No app file is generated. All I get is an
Why is it saying ‘bundler’ is not a function?
Changing things in my
quasar.conf.jsdidn’t help at all.
I’m on MacOSX. :-\
I’m seeing a similar error with a freshly installed project.
Is this a bug, or just my config?
Any help is much appreciated.
The above error occurs when I build with electron-packager.
If I run
quasar build -m electronwith electron-builder as bundling tool, I get:
TypeError: Cannot read property 'build' of null
After updating from quasar 1.1.4 to 1.1.6 it suddenly worked.
I’m using 1.7.2 and got same problem…
UnhandledPromiseRejectionWarning: TypeError: bundler is not a function - index.js:137 Promise [my-app]/[@quasar]/app/lib/electron/index.js:137:13 - new Promise - index.js:132 Promise.then.then [my-app]/[@quasar]/app/lib/electron/index.js:132:14 - next_tick.js:68 process._tickCallback internal/process/next_tick.js:68:7
quasar dev -m electronis working properly
So… 1.7.3 seems to fix this, but this is very weird…
I have the same problem, still does not work on the latest version??
What is wrong here?
metalsadman last edited by
@Kraftwurm you need to reinstall your deps after upgrade, run
quasar build -m electron again. At least that’s how it worked for me.
Muhammad Amin last edited by
Assalamu alaykum, You need just delete node modules. Then type npm install. And then quasar build -m electron again.