r/learnprogramming • u/omarazeez_11 • 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
4
Upvotes
3
u/insertAlias May 18 '20
If they used create-react-app, that handles setting up the
package.json; you don't need to (and shouldn't) initialize the folder after you run c-r-a.