react-plotly.js icon indicating copy to clipboard operation
react-plotly.js copied to clipboard

The dependencies are not being installed

Open crawlchange opened this issue 3 years ago • 2 comments

Steps to reproduce:

npm install react-plotly.js plotly.js npm start

Errors:

Module not found: Error: Can't resolve 'buffer/' Module not found: Error: Can't resolve 'stream' webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. Module not found: Error: Can't resolve 'assert' in

crawlchange avatar Mar 13 '23 16:03 crawlchange

any ideas how to solve?

floschne avatar Sep 10 '23 08:09 floschne

Installing 
"@types/plotly.js": "^2.12.30",
 "plotly.js-dist-min": "^2.27.1"
    
 and 
 import Plotly from "plotly.js-dist-min";

this worked for me.

sriinnu avatar Dec 11 '23 08:12 sriinnu