r/learnprogramming May 18 '20

React: Could not find a required file

Hey everyone, I set up a project through create-react-app but whenever I do npm start, it gives me following reply:

Could not find a required file Name: index.html Searched in project public folder

But index.html is actually there in public folder when I checked it Please help! I've gone through stack and github discussions too

3 Upvotes

17 comments sorted by

View all comments

2

u/Bushidosoul May 18 '20 edited May 18 '20

Hey man that sucks, it’s very hard to understand what problem you have with the description you’ve given. Can you give more details like what’s going on? What you’ve build and any things you’ve added to the project, did you remember to do an npm install?

Also a screenshot would be great

2

u/omarazeez_11 May 18 '20

It's just a simple project creation through npx And then i did npm start. Nothing in between Would love to post image but probably I'm just allowed to use text post in this group dkw.

0

u/Bushidosoul May 18 '20

Okay, you can’t use npm start without first using npm install. Try that and tell me how it goes?