skip to Main Content

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

APP.JSX

I checked other questions and I tried some of solutions but none of them didn’t work.Please help me.

2

Answers


  1. Try to delete node_modules and package-lock.json.

    Then run:

    npm i

    or

    yarn

    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search