On installing react-plotly, npm start fails

I get the below error starting the application after installing react-plotly.js using npm install react-plotly.js plotly.js:

npm ERR! code ELIFECYCLE                                                                                                
npm ERR! errno 1                                                                                                        
npm ERR! react-frontend@0.1.0 start: `react-scripts start`                                                              
npm ERR! Exit status 1                                                                                                  
npm ERR!                                                                                                                
npm ERR! Failed at the react-frontend@0.1.0 start script.                                                               
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.                      

I can confirm the app works with react-plotly uninstalled.

1 Like

the problem same with me. Did you solve a problem?

Yes, instead of installing plotly.js, try plotly.js-basic-dist