Failed to decode param '/%PUBLIC_URL%/favico.ico'

See original GitHub issue

Current Behavior

After upgrade to this latest version, on running application I got:

event - compiled successfully
[ ready ] on http://localhost:4000
URIError: Failed to decode param '/%PUBLIC_URL%/favicon.ico'
    at decodeURIComponent (<anonymous>)
    at decode_param (/Users/vitorcamacho/workspace/dashboard-HQ/node_modules/express/lib/router/layer.js:172:12)
    at Layer.match (/Users/vitorcamacho/workspace/dashboard-HQ/node_modules/express/lib/router/layer.js:123:27)
    at matchLayer (/Users/vitorcamacho/workspace/dashboard-HQ/node_modules/express/lib/router/index.js:574:18)
    at next (/Users/vitorcamacho/workspace/dashboard-HQ/node_modules/express/lib/router/index.js:220:15)
    at SendStream.error (/Users/vitorcamacho/workspace/dashboard-HQ/node_modules/serve-static/index.js:121:7)
    at SendStream.emit (node:events:376:20)
    at SendStream.error (/Users/vitorcamacho/workspace/dashboard-HQ/node_modules/send/index.js:270:17)
    at SendStream.pipe (/Users/vitorcamacho/workspace/dashboard-HQ/node_modules/send/index.js:520:10)
    at serveStatic (/Users/vitorcamacho/workspace/dashboard-HQ/node_modules/serve-static/index.js:125:12)
    at Layer.handle [as handle_request] (/Users/vitorcamacho/workspace/dashboard-HQ/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/Users/vitorcamacho/workspace/dashboard-HQ/node_modules/express/lib/router/index.js:317:13)
    at /Users/vitorcamacho/workspace/dashboard-HQ/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/Users/vitorcamacho/workspace/dashboard-HQ/node_modules/express/lib/router/index.js:335:12)
    at next (/Users/vitorcamacho/workspace/dashboard-HQ/node_modules/express/lib/router/index.js:275:10)
    at expressInit (/Users/vitorcamacho/workspace/dashboard-HQ/node_modules/express/lib/middleware/init.js:40:5)
    at Layer.handle [as handle_request] (/Users/vitorcamacho/workspace/dashboard-HQ/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/Users/vitorcamacho/workspace/dashboard-HQ/node_modules/express/lib/router/index.js:317:13)
    at /Users/vitorcamacho/workspace/dashboard-HQ/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/Users/vitorcamacho/workspace/dashboard-HQ/node_modules/express/lib/router/index.js:335:12)
    at next (/Users/vitorcamacho/workspace/dashboard-HQ/node_modules/express/lib/router/index.js:275:10)
    at query (/Users/vitorcamacho/workspace/dashboard-HQ/node_modules/express/lib/middleware/query.js:45:5)

Expected Behavior

Steps to Reproduce

This issue may not be prioritized if details are not provided to help us reproduce the issue.

Failure Logs

Environment

MacOS M1 

npm: 7

@nrwl/cli                 11.1.5   →    11.2.12 
  @nrwl/eslint-plugin-nx   ^11.1.5   →   ^11.2.12 
  @nrwl/jest                11.1.5   →    11.2.12 
  @nrwl/next                11.1.5   →    11.2.12 
  @nrwl/react               11.1.5   →    11.2.12 
  @nrwl/workspace           11.1.5   →    11.2.12 

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
bvandenboncommented, Oct 29, 2021

If you actually do have an existing app that you’re trying to migrate and it has %PUBLIC_URL%/favicon.ico in the index.html file. Is it correct to state that %PUBLIC_URL% portion of the URL is no longer supported and should be removed ?

After migration of the app to nx, it’s no longer replaced in the projects which I run.

1reaction
mandarinicommented, Feb 13, 2021

Hi @vitorcamachoo ! I closed this issue, since you seemed to solve it. I may be related to the cache folder, or potentially to leftover artefacts in the dist folder (since deleting it solves the issue). Let me know if it persists and we can reopen! Thank you! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to decode param '/%PUBLIC_URL%/favicon.ico' - Stack ...
I am new to webpack and I got the babel loader and css loader to work and project compiles successfully but when I...
Read more >
URIError: Failed to decode param '/%PUBLIC_URL%/favicon ...
To create a production build, use yarn build. URIError: Failed to decode param '/%PUBLIC_URL%/favicon.ico' at decodeURIComponent () at ...
Read more >
Failed to decode param '/%PUBLIC_URL%/favicon.ico'-Reactjs
I was getting this error from create-react-app when I was serving the page from express server. It was because I was serving static...
Read more >
Failed to decode param '/%PUBLIC_URL%/favicon.ico ...
I'm running a react application with webpack and webpack-dev-server and meet a problem about %PUBLIC_URL% . URIError: Failed to decode param '/%PUBLIC_URL%/ ...
Read more >
Tag: express - somewhat abstract
Unfortunately, where we ended up was a failing app. This week we are going to jump straight ... URIError: Failed to decode param...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found