react-plotly.js
react-plotly.js copied to clipboard
The dependencies are not being installed
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
any ideas how to solve?
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.