react-plotly.js: Problem with Gulp "Cannot find module"
I am trying to use react plotly but when gulp is bundling all files I get the following error:
Error: Cannot find module './core' from 'C:\Users\...\node_modules\plotly.js\dist'
I saw there have been problems when using webpack but I haven’t found anything gulp related.
I followed this guide to setup and import Plotly: https://plot.ly/javascript/react/
Any help?
About this issue
- Original URL
- State: open
- Created 6 years ago
- Reactions: 1
- Comments: 19 (3 by maintainers)
this should now be resolved with plotly.js 1.40.0. Can someone confirm please?
@m90 I really appreciate your effort Fredrik unfortunately though this did not solve the issue. I will have a closer look at my gulpfile and I guess this is a problem on my side. Thanks
I can confirm this is working for me now. Thank you!
I’m running into the same issue trying to import the module in a Browserify bundle. It’s trying to lookup inexistent files in the
dist
folder.