Could not find a required file. Name: index.html

后端 未结 2 1515
情歌与酒
情歌与酒 2021-01-12 08:29

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 th

相关标签:
2条回答
  • 2021-01-12 08:45

    In my case, I have accidentally deleted the public directory so it couldn't find the index.html file

    0 讨论(0)
  • 2021-01-12 08:53

    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

    Are you using git for version control? I suspect that you have moved something without realising it. Git will be able to tell you if something did change.

    0 讨论(0)
提交回复
热议问题