Skip to content Skip to sidebar Skip to footer

Urierror: Failed To Decode Param '///%public_url%/manifest.json'

I am trying to revive an old React app that I coded a year and a half ago. I cloned it and installed all of the dependencies, but when I do 'npm start', it just loads a blank page

Solution 1:

Try changing your homepage in your package.json file to: "/" instead of using your GitHub repo's URL. react-scripts run (which is what npm start runs) seems to use the domain from the homepage as the root from which to serve the app.

Solution 2:

In your index.html, try changing

<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />

to:

<link rel="manifest" href="/public/manifest.json" />

This may be the only way to solve it without ejecting the project.

Post a Comment for "Urierror: Failed To Decode Param '///%public_url%/manifest.json'"