I am working on a website using react.js and tailwindcss. Yesterday ı was starting my project on localhost and everything was fine. I didn’t change anything but I can not open my project on localhost now.Error is Cannot find module
P.S: Is there another way for preview my project without npm?
ERROR
I checked other questions and I tried some of solutions but none of them didn’t work.Please help me.
2
Answers
Try to delete node_modules and package-lock.json.
Then run:
or
You are trying to import App.js somewhere instead importing App.jsx so you are receiving module not found error. Make sure you’ve imported App.jsx everywhere not as a App.js.