Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URIError: Failed to decode param '/%PUBLIC_URL%/favicon.ico' #1

Open
jsanguin opened this issue Jan 23, 2021 · 3 comments
Open

URIError: Failed to decode param '/%PUBLIC_URL%/favicon.ico' #1

jsanguin opened this issue Jan 23, 2021 · 3 comments

Comments

@jsanguin
Copy link

Good evening Brad:
I have cloned this repository in my local machine (Ubuntu Linux), followed all the instructions in Read-me. I get this error :

Compiled successfully!

You can now view react-task-tracker in the browser.

Local: http://localhost:3000/bradtraversy/react-crash-202
On Your Network: http://192.168.86.46:3000/bradtraversy/react-crash-202

Note that the development build is not optimized.
To create a production build, use yarn build.

URIError: Failed to decode param '/%PUBLIC_URL%/favicon.ico'
at decodeURIComponent ()
at decode_param (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/layer.js:172:12)
at Layer.match (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/layer.js:123:27)
at matchLayer (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:574:18)
at next (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:220:15)
at expressInit (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/middleware/init.js:40:5)
at Layer.handle [as handle_request] (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:317:13)
at /home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:335:12)
URIError: Failed to decode param '/%PUBLIC_URL%/manifest.json'
at decodeURIComponent ()
at decode_param (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/layer.js:172:12)
at Layer.match (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/layer.js:123:27)
at matchLayer (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:574:18)
at next (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:220:15)
at expressInit (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/middleware/init.js:40:5)
at Layer.handle [as handle_request] (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:317:13)
at /home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:335:12)
URIError: Failed to decode param '/bradtraversy/react-crash-2021/%PUBLIC_URL%/favicon.ico'
at decodeURIComponent ()
at decode_param (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/layer.js:172:12)
at Layer.match (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/layer.js:123:27)
at matchLayer (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:574:18)
at next (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:220:15)
at expressInit (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/middleware/init.js:40:5)
at Layer.handle [as handle_request] (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:317:13)
at /home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:335:12)
URIError: Failed to decode param '/bradtraversy/react-crash-2021/%PUBLIC_URL%/manifest.json'
at decodeURIComponent ()
at decode_param (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/layer.js:172:12)
at Layer.match (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/layer.js:123:27)
at matchLayer (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:574:18)
at next (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:220:15)
at expressInit (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/middleware/init.js:40:5)
at Layer.handle [as handle_request] (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:317:13)
at /home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:335:12)
URIError: Failed to decode param '/%PUBLIC_URL%/manifest.json'
at decodeURIComponent ()
at decode_param (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/layer.js:172:12)
at Layer.match (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/layer.js:123:27)
at matchLayer (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:574:18)
at next (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:220:15)
at expressInit (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/middleware/init.js:40:5)
at Layer.handle [as handle_request] (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:317:13)
at /home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:335:12)
URIError: Failed to decode param '/%PUBLIC_URL%/favicon.ico'
at decodeURIComponent ()
at decode_param (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/layer.js:172:12)
at Layer.match (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/layer.js:123:27)
at matchLayer (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:574:18)
at next (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:220:15)
at expressInit (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/middleware/init.js:40:5)
at Layer.handle [as handle_request] (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:317:13)
at /home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:335:12)
URIError: Failed to decode param '/%PUBLIC_URL%/manifest.json'
at decodeURIComponent ()
at decode_param (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/layer.js:172:12)
at Layer.match (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/layer.js:123:27)
at matchLayer (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:574:18)
at next (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:220:15)
at expressInit (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/middleware/init.js:40:5)
at Layer.handle [as handle_request] (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:317:13)
at /home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:335:12)
URIError: Failed to decode param '/%PUBLIC_URL%/favicon.ico'
at decodeURIComponent ()
at decode_param (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/layer.js:172:12)
at Layer.match (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/layer.js:123:27)
at matchLayer (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:574:18)
at next (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:220:15)
at expressInit (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/middleware/init.js:40:5)
at Layer.handle [as handle_request] (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:317:13)
at /home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/jorge/Sites/react-crash-2021/node_modules/express/lib/router/index.js:335:12)

@andyaspel
Copy link

andyaspel commented Feb 10, 2021

I think you are linking wrong file paths.
URIError: Failed to decode param '/bradtraversy/react-crash-2021/%PUBLIC_URL%/favicon.ico'
check your script tags in index.html
I think they link to bradtraversy/react-crash-2021

@matheus4lves
Copy link

Thanks @andyaspel ! I was having some trouble with this error since I decided to replace the create-react-app with my own configuration, due some kind of bug that was making my browsers eat all my ram. I completely forgot to check the index.html and there was some links there causing the error.

@redpredator8
Copy link

Fix: if you have github, revert to the last change you did / unistall recent libraries

I updated my mac and this started happening, was killing my brain tbh. Im pretty sure it was bc i installed firebase tools and that messed up something because i updated my mac and maybe smth didnt save by mac time-machine so it was throwing a weird hidden syntax error that was preventing the app to be displayed. I tried fixing all the errors like the guys up top are saying fixing the links etc but brand new shit was popping up and I was like nahh. no way i have to recode Node to fix this shit.

Options: Revert to previous version / uninstall recent installed libraries / Create a new react app and just copy your src folder to the new app

leave a thubs up: )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants