question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Webpack] Module not found: Error: Can't resolve 'vertx' in '/home/user/app/node_modules/plotly.js/dist'

See original GitHub issue

Error with plotly.js 1.35.1 and webpack 3.11.0 when importing: import Plotly from 'plotly.js/dist/plotly-with-meta'

./node_modules/plotly.js/dist/plotly-with-meta.js
Module not found: Error: Can't resolve 'vertx' in '/home/user/app/node_modules/plotly.js/dist'
 @ ./node_modules/plotly.js/dist/plotly-with-meta.js 61621:16-26
 @ ./src/entryPoint.js
 @ multi ./src/entryPoint.js webpack-hot-middleware/client?path=http://localhost:3000/__webpack_hmr

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:21 (12 by maintainers)

github_iconTop GitHub Comments

12reactions
domehead100commented, Mar 14, 2018

The error is from the es6 promise shim. Discussed here #100 and here #305.

I had to add

new webpack.IgnorePlugin(/vertx/)

to my plugins to squelch the warning. Other things mentioned in the two discussions did not work. I’m still on webpack 3.10 and started getting this when updating to plotly.js 1.35.2 a few days ago.

2reactions
brusseecommented, Mar 12, 2018

Just to confirm: this is showing up as a warning, and compilation proceeds, right?

Yes, webpack presents it as a warning and is able to complete the compilation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

vertx module not found when using webpack - Stack Overflow
To resolve the issue: Install @vertx/core ( npm i @vertx/core ). Edit the file ./node_modules/when/lib/env.js , and change line 32 from
Read more >
plotly - Bountysource
[Webpack] Module not found: Error: Can't resolve 'vertx' in '/home/user/app/node_modules/plotly.js/dist'
Read more >
Error: Can't resolve 'encoding' when deploying Next.js ...
I'm getting this error when trying to deploy Next Commerce ... Module not found: Error: Can't resolve 'encoding' when deploying Next.js ...
Read more >
vertx module not found when using webpack - AngularFix
Issue. When using webpack and libraries that want to use when.js ( when ), it is possible that the following error is thrown...
Read more >
vertx module not found when using webpack - Anycodings.com
To resolve the issue: Install @vertx/core (npm i @vertx/core). Edit the file anycodings_webpack ./node_modules/when/lib/env.js, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found