Blank index.html when deploying react app

Cannot get my full react site to deploy. I am so close I can smell the victory.

I know that the culprit is my main.js file is not being deployed properly.

In the console log at my website I see the following errors:

  • Uncaught SyntaxError: Unexpected token ‘<’ (at main.18c4db1c.js:1:1)
  • manifest.json:1 Manifest: Line: 1, column: 1, Syntax error.

and when I look at the files, they are an exact minimized version of the main index.html file at the root of my project.

here is a link to my netlify site:

and the github repo:

Any help would be greatly appreciated!

Things I have tried:

  • I’ve run a local build and it works as expected
  • I’ve manually added a .toml file with a redirect

I’ve read through and tried the following links:

@leerobertdyer Do not force this redirect:

Change it to:

/* /index.html 200

You want it to only redirect when the file does not exist, not to always redirect.

2 Likes

Ahhhh! Thank you!

That did it. Seriously one character haha!!! Spent days on this.