Could Not Find A Required File. Name: Index.html
I have been working on this React project, since a few months without having come across this error. I haven't made any changes in the location of the index.html file in the projec
Solution 1:
index.html has been moved/removed from the /public directory
Does your project have an index.html file in the public directory?
If not you can get the one that Create React App uses here
It should be in <your project root>/public/index.html
If you are using Git for version control it will be able to tell you if something was moved or removed.
Run git status
to view changed files
Solution 2:
In my case, I have accidentally deleted the public directory so it couldn't find the index.html file
Solution 3:
Your public folder might be missing, just create another app using create-react-app and copy paste the public folder in this directory
Post a Comment for "Could Not Find A Required File. Name: Index.html"