i have installed the package with yarn and i am using vs-code. I am trying to do:
import Plot from 'react-plotly.js';
but i am getting the error:
ERROR in ./src/App.js 12:0-35 Module not found: Error: Can't resolve 'react-plotly.js' in /home/user/Desktop/webapp/yt/src
i can't find the issue i have tried clearing the cache, installing at a new workspace etc. I am new in this field and i don't know what is the issue. If i right click on Plot from the message import Plot from 'react-plotly.js'; and click go to definition it works, but when i go yarn start it gives me the error above. Please help me :(
i have installed the package with yarn and i am using vs-code. I am trying to do:
import Plot from 'react-plotly.js';
but i am getting the error:ERROR in ./src/App.js 12:0-35 Module not found: Error: Can't resolve 'react-plotly.js' in /home/user/Desktop/webapp/yt/src
i can't find the issue i have tried clearing the cache, installing at a new workspace etc. I am new in this field and i don't know what is the issue. If i right click on Plot from the messageimport Plot from 'react-plotly.js';
and click go to definition it works, but when i goyarn start
it gives me the error above. Please help me :(