No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Electron Build fails: (node:50952) UnhandledPromiseRejectionWarning: TypeError: bundler is not a function

    Help
    5
    6
    630
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jym last edited by jym

      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 an UnPackaged Folder.
      Why is it saying ‘bundler’ is not a function?
      Changing things in my quasar.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 run quasar build -m electron with electron-builder as bundling tool, I get:

      TypeError: Cannot read property 'build' of null
      

      Best,
      jym

      1 Reply Last reply Reply Quote 1
      • J
        jym last edited by

        After updating from quasar 1.1.4 to 1.1.6 it suddenly worked.

        1 Reply Last reply Reply Quote 0
        • B
          bcalemb last edited by bcalemb

          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 properly

          So… 1.7.3 seems to fix this, but this is very weird…

          1 Reply Last reply Reply Quote 0
          • K
            Kraftwurm last edited by

            I have the same problem, still does not work on the latest version??

            Quasar 1.8.3

            What is wrong here?

            1 Reply Last reply Reply Quote 0
            • metalsadman
              metalsadman last edited by

              @Kraftwurm you need to reinstall your deps after upgrade, run yarn then quasar build -m electron again. At least that’s how it worked for me.

              1 Reply Last reply Reply Quote 2
              • M
                Muhammad Amin last edited by

                Assalamu alaykum, You need just delete node modules. Then type npm install. And then quasar build -m electron again.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post