I am trying to setup react routing which works when I click on something on my site the route works, however if I open a new tab and copy that url. I get
Ref
I got the same exact error and find out that I need to change my script in
index.html
from
to
so if you have a "." or nothing in front of your file, just replace it with "/". I hope this helps you or someone else.