qb1234
qb1234

Reputation: 145

"Could not find a required file. remote: Name: index.html" This the error I get whenever I deploy my ReactJS app via Heroku, Zeit/Now or Netlify

I created my react app with the create-react-app utility which places the index.html file in the public folder by default. I have not moved it from there and it is the exact same way in the repo link to the public folder. I've already checked my .gitignore to make sure it isn't ignoring index.html. I've run npm install to make sure all dependencies are in place. Here is my current directory structure. Not sure what the issue is and have tried all suggested troubleshooting methods.

enter image description here

Here is my directory structure

Upvotes: 0

Views: 412

Answers (1)

IamToobDude
IamToobDude

Reputation: 60

You most likely need to move your public folder to the route path of the project outside of the current directory

Upvotes: 0

Related Questions