-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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 '/%3C%=%20webpackConfig.output.publicPath%20%%3Efavicon.ico' #1451
Comments
right now I just noticed that I created a |
i just removed previously, the |
|
@yyx990803 no other possibilities for relative path? |
This error has nothing to do with |
For what its worth, my problem was related to I had a base URL set, like: |
This issue is reproducible with a fresh vue-cli 3 project, without making any other changes except to add a bad scss @import path. It is caused when there's an actual compilation error and you visit the page with a browser. It's pretty confusing since the stack trace and message are unrelated to the actual issue (a missing scss file). I created an example repo for this issue: https://github.com/bbugh/vue-cli-issue-1451 Reproduction steps:
|
frequently here too, no idea what happened, sometimes it's ok, sometimes it's broken. |
I have the same after installing a new package (vuex-class) |
On a high level: this error means the URL you are visiting does not have a corresponding HTML page. There could be different causes that leads to this, so the only way to help us investigate the problem is by providing actual reproductions. |
+1 |
I encountered this error as well and in my case it was the symptom of another problem. The build was failing silently because of a syntax or linter error but
I'll try to share a minimal code sample to reproduce the error if it happens again! |
There are two possible reasons to see this error:
In this situation, seeing this error is because because you are visiting the "original html" (by
This is because we uses We can simply remove |
Yes, You are correct and the error was due to the baseUrl, as development build was not able to take the correct path while running the app in development mode, so I have fixed that by adding below code,
|
@jkzing It was added because of |
This Issue occurred when you are trying to access the wrong URL. this is what npm run serve do
Correct URL is http://localhost:8080/ImporterStats/v1Importer.html because I have replaced it in above html config. Hope this works for you as well |
For me it happened because i had |
in which file you have added this code |
I had this same issue when trying to implement module federation in Vue2
I solved it by changing the dynamic code in public\index.html
to
|
it occured when i wanna put all resources in a nested directory in both development and production mode. module.exports = {
publicPath: "./" + process.env.NESTED_DIR_NAME,
devServer:{
devMiddleware: {
publicPath: "/" + process.env.NESTED_DIR_NAME,
},
},
...
} by the way, @vue/cli-service should be upgrade to support the "devMiddleware" option,in my case,its ^5.0.0 |
我已经收到你的邮件,由于不经常使用所以无法及时回复,有急事请电联,谢谢。
|
Version
3.0.0-beta.15
Reproduction link
https://github.com/marco-carvalho/music
Steps to reproduce
git clone https://github.com/marco-carvalho/music
npm i
npm run serve
What is expected?
App running at:
What is actually happening?
App running at:
URIError: Failed to decode param '/%3C%=%20webpackConfig.output.publicPath%20%%3Efavicon.ico'
at decodeURIComponent ()
at decode_param (/media/marco/Backup/Git/music/node_modules/express/lib/router/layer.js:172:12)
at Layer.match (/media/marco/Backup/Git/music/node_modules/express/lib/router/layer.js:123:27)
at matchLayer (/media/marco/Backup/Git/music/node_modules/express/lib/router/index.js:574:18)
at next (/media/marco/Backup/Git/music/node_modules/express/lib/router/index.js:220:15)
at expressInit (/media/marco/Backup/Git/music/node_modules/express/lib/middleware/init.js:40:5)
at Layer.handle [as handle_request] (/media/marco/Backup/Git/music/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/media/marco/Backup/Git/music/node_modules/express/lib/router/index.js:317:13)
at /media/marco/Backup/Git/music/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/media/marco/Backup/Git/music/node_modules/express/lib/router/index.js:335:12)
at next (/media/marco/Backup/Git/music/node_modules/express/lib/router/index.js:275:10)
at query (/media/marco/Backup/Git/music/node_modules/express/lib/middleware/query.js:45:5)
at Layer.handle [as handle_request] (/media/marco/Backup/Git/music/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/media/marco/Backup/Git/music/node_modules/express/lib/router/index.js:317:13)
at /media/marco/Backup/Git/music/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/media/marco/Backup/Git/music/node_modules/express/lib/router/index.js:335:12)
URIError: Failed to decode param '/%3C%=%20webpackConfig.output.publicPath%20%%3Efavicon.ico'
at decodeURIComponent ()
at decode_param (/media/marco/Backup/Git/music/node_modules/express/lib/router/layer.js:172:12)
at Layer.match (/media/marco/Backup/Git/music/node_modules/express/lib/router/layer.js:123:27)
at matchLayer (/media/marco/Backup/Git/music/node_modules/express/lib/router/index.js:574:18)
at next (/media/marco/Backup/Git/music/node_modules/express/lib/router/index.js:220:15)
at expressInit (/media/marco/Backup/Git/music/node_modules/express/lib/middleware/init.js:40:5)
at Layer.handle [as handle_request] (/media/marco/Backup/Git/music/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/media/marco/Backup/Git/music/node_modules/express/lib/router/index.js:317:13)
at /media/marco/Backup/Git/music/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/media/marco/Backup/Git/music/node_modules/express/lib/router/index.js:335:12)
at next (/media/marco/Backup/Git/music/node_modules/express/lib/router/index.js:275:10)
at query (/media/marco/Backup/Git/music/node_modules/express/lib/middleware/query.js:45:5)
at Layer.handle [as handle_request] (/media/marco/Backup/Git/music/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/media/marco/Backup/Git/music/node_modules/express/lib/router/index.js:317:13)
at /media/marco/Backup/Git/music/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/media/marco/Backup/Git/music/node_modules/express/lib/router/index.js:335:12)
The text was updated successfully, but these errors were encountered: