Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module 'timers' with webpack electron and karma #1614

Closed
popod opened this issue Oct 5, 2019 · 4 comments
Closed

Cannot find module 'timers' with webpack electron and karma #1614

popod opened this issue Oct 5, 2019 · 4 comments

Comments

@popod
Copy link

popod commented Oct 5, 2019

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

@popod popod changed the title Cannot find module 'timers' with webpack elecrton and karma Cannot find module 'timers' with webpack electron and karma Oct 5, 2019
@Nantris
Copy link

Nantris commented Oct 5, 2019

Exact same issue in exact same environment.

@storageddd
Copy link

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

@Nantris
Copy link

Nantris commented Oct 14, 2019

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

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

@petkaantonov
Copy link
Owner

Fixed in 3.7.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants