Electron Build fails: (node:50952) UnhandledPromiseRejectionWarning: TypeError: bundler is not a function
-
Hi all,
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 anUnPackaged
Folder.
Why is it saying ‘bundler’ is not a function?
Changing things in myquasar.conf.js
didn’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.
EDIT 1:
The above error occurs when I build with electron-packager.
If I runquasar build -m electron
with electron-builder as bundling tool, I get:TypeError: Cannot read property 'build' of null
Best,
jym -
After updating from quasar 1.1.4 to 1.1.6 it suddenly worked.
-
Well,
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
However
quasar dev -m electron
is working properlySo… 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??
Quasar 1.8.3
What is wrong here?
-
@Kraftwurm you need to reinstall your deps after upgrade, run
yarn
thenquasar build -m electron again
. At least that’s how it worked for me. -
Assalamu alaykum, You need just delete node modules. Then type npm install. And then quasar build -m electron again.