[Webpack] Module not found: Error: Can't resolve 'vertx' in '/home/user/app/node_modules/plotly.js/dist'
See original GitHub issueError 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:
- Created 6 years ago
- Reactions:5
- Comments:21 (12 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Yes, webpack presents it as a warning and is able to complete the compilation.