DEV Community

Vaughn McPherson
Vaughn McPherson

Posted on

npm start error with react

My code was working perfectly. After running create-react-app and npm start, the react logo would appear in localhost 3000. Beautiful. Then it just started giving me errors. I even started a fresh repository and installed react under a different filename. pakage.json is clearly in the directory. No go. What gives?

Alt Text

Top comments (1)

Collapse
 
vaughnsmcp profile image
Vaughn McPherson

Fixed it. For some reason, it stopped recognizing my files in the subdirectory. After moving everything to the main dir, everything worked fine. Anyone know why?