Bluebird: Cannot find module 'timers' with webpack electron and karma

Created on 5 Oct 2019  路  4Comments  路  Source: petkaantonov/bluebird

Since bluebird 3.6.0 my unit tests does not work anymore.

The error is

Electron 6.0.11 (Node 12.4.0) ERROR
  Uncaught Error: Cannot find module 'timers'
  at webpack:///app/node_modules/bluebird/js/browser/bluebird.js:29:513 <- index.js:10450:289

Tested with bluebird 3.5.5 and all works fine. 3.6.0 and upper thrown this error.

Any idea of the problem ? Thanks

pull-request-welcome

Most helpful comment

Fixed in 3.7.1

All 4 comments

Exact same issue in exact same environment.

Have the same issue. Using Quasar (Electron mode).

For anyone using yarn (probably also works for npm) add this to your package.json:

  "resolutions": {
    "bluebird": "3.5.5"
  },

Fixed in 3.7.1

Was this page helpful?
0 / 5 - 0 ratings