plotly / react-plotly.js

A plotly.js React component from Plotly 📈
MIT License
1.01k stars 135 forks source link

The dependencies are not being installed #314

Open crawlchange opened 1 year ago

crawlchange commented 1 year ago

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

floschne commented 1 year ago

any ideas how to solve?

sriinnu commented 9 months ago
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.