DEV Community

Clifton Hill
Clifton Hill

Posted on

1

React Error: Can't resolve module (not found) in React.js

Do you have the import line for your React module correct, but getting an error in console?

import App from "./components/App";
Enter fullscreen mode Exit fullscreen mode

For me, I had the input correct but npm start can be buggy. If I move files to different folders, npm start doesn't pick up on these changes. I need to cancel npm start process, make the move, save and then run npm start and it will see the files now.

Not a problem! Except for all of my pulled out hair in the process...

Top comments (0)

SurveyJS custom survey software

JavaScript Form Builder UI Component

Generate dynamic JSON-driven forms directly in your JavaScript app (Angular, React, Vue.js, jQuery) with a fully customizable drag-and-drop form builder. Easily integrate with any backend system and retain full ownership over your data, with no user or form submission limits.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay