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

"No match found for location with path" is still spammed on unknown paths #26947

Open
PierreSchwang opened this issue Apr 25, 2024 · 2 comments

Comments

@PierreSchwang
Copy link

Environment

Basically everywhere, on my windows development machine:

------------------------------
- Operating System: Windows_NT
- Node Version:     v18.15.0
- Nuxt Version:     3.11.2
- CLI Version:      3.11.1
- Nitro Version:    -
- Package Manager:  yarn@3.7.0
- Builder:          -
- User Config:      devtools, css, devServer, modules, runtimeConfig, sitemap, image, i18n
- Runtime Modules:  nuxt-particles@0.3.0, @nuxtjs/i18n@8.3.1, @nuxtjs/sitemap@5.1.4
- Build Modules:    -
------------------------------

And in the production docker image using node-20 / node-21 alpine where I can only provide the nitro.json:

{
  "date": "2024-04-25T10:18:46.878Z",
  "preset": "node-server",
  "framework": {
    "name": "nuxt",
    "version": "3.11.2"
  },
  "versions": {
    "nitro": "2.9.6"
  },
  "commands": {
    "preview": "node ./server/index.mjs"
  }
}
/app/.output # node -v
v21.7.3

Reproduction

Basically a new project from the template using the vue-router and a page, but for the sake of simplicity:
https://stackblitz.com/edit/github-hmpfds?file=app.vue

Describe the bug

Relates #26425 + #26519

If I understood correctly the issue should be resolved by using the latest nuxt build, but doesn't seem to: When visiting an unknown route - even if having an error.vue in root - the message [Vue Router warn]: No match found for location with path is printed several times (I couldn't find a correlation between the amount of pages and log entries, sometimes it seems to be 4 times, other times it's about 15x). That happens in the development environment, and in the production build.

Additional context

The Dockerfile building the production image:

FROM node:21 AS builder

WORKDIR /app

COPY package.json /app
COPY yarn.lock /app
COPY .yarnrc.yml /app
RUN yarn set version stable ; yarn set version 3.x
RUN yarn install
ADD . /app
RUN yarn build

FROM node:21-alpine

WORKDIR /app
COPY --from=builder /app/.output /app/.output

EXPOSE 3000

ENTRYPOINT ["node", ".output/server/index.mjs"]

Logs

The part of the example log from production where some crawlers try to find security issues:

[Vue Router warn]: No match found for location with path "/wp-content/plugins/wp-automatic/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-content/plugins/wp-automatic/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-content/plugins/wp-automatic/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-content/plugins/wp-automatic/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-content/plugins/wp-automatic/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-content/plugins/wp-automatic/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-content/plugins/wp-automatic/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-content/plugins/wp-automatic/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-content/plugins/wp-automatic/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-content/plugins/wp-automatic/inputs.php"
[Vue Router warn]: No match found for location with path "/inputs.php"
[Vue Router warn]: No match found for location with path "/inputs.php"
[Vue Router warn]: No match found for location with path "/inputs.php"
[Vue Router warn]: No match found for location with path "/inputs.php"
[Vue Router warn]: No match found for location with path "/inputs.php"
[Vue Router warn]: No match found for location with path "/inputs.php"
[Vue Router warn]: No match found for location with path "/inputs.php"
[Vue Router warn]: No match found for location with path "/inputs.php"
[Vue Router warn]: No match found for location with path "/inputs.php"
[Vue Router warn]: No match found for location with path "/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-admin/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-admin/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-admin/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-admin/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-admin/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-admin/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-admin/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-admin/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-admin/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-admin/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-content/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-content/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-content/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-content/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-content/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-content/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-content/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-content/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-content/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-content/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-content/themes/twentytwentytwo/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-content/themes/twentytwentytwo/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-content/themes/twentytwentytwo/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-content/themes/twentytwentytwo/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-content/themes/twentytwentytwo/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-content/themes/twentytwentytwo/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-content/themes/twentytwentytwo/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-content/themes/twentytwentytwo/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-content/themes/twentytwentytwo/inputs.php"
[Vue Router warn]: No match found for location with path "/wp-content/themes/twentytwentytwo/inputs.php"
[Vue Router warn]: No match found for location with path "/.env"
[Vue Router warn]: No match found for location with path "/.env"
[Vue Router warn]: No match found for location with path "/.env"
[Vue Router warn]: No match found for location with path "/.env"
[Vue Router warn]: No match found for location with path "/.env"
[Vue Router warn]: No match found for location with path "/.env"
[Vue Router warn]: No match found for location with path "/.env"
[Vue Router warn]: No match found for location with path "/.env"
[Vue Router warn]: No match found for location with path "/.env"
[Vue Router warn]: No match found for location with path "/.env"
[Vue Router warn]: No match found for location with path "/wp-content/themes/rehub-theme/icons/modulobox.svg"
[Vue Router warn]: No match found for location with path "/wp-content/themes/rehub-theme/icons/modulobox.svg"
[Vue Router warn]: No match found for location with path "/wp-content/themes/rehub-theme/icons/modulobox.svg"
[Vue Router warn]: No match found for location with path "/wp-content/themes/rehub-theme/icons/modulobox.svg"
[Vue Router warn]: No match found for location with path "/wp-content/themes/rehub-theme/icons/modulobox.svg"
[Vue Router warn]: No match found for location with path "/wp-content/themes/rehub-theme/icons/modulobox.svg"
[Vue Router warn]: No match found for location with path "/wp-content/themes/rehub-theme/icons/modulobox.svg"
[Vue Router warn]: No match found for location with path "/wp-content/themes/rehub-theme/icons/modulobox.svg"
[Vue Router warn]: No match found for location with path "/wp-content/themes/rehub-theme/icons/modulobox.svg"
[Vue Router warn]: No match found for location with path "/wp-content/themes/rehub-theme/icons/modulobox.svg"
Copy link

stackblitz bot commented Apr 25, 2024

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@ChinDer
Copy link

ChinDer commented May 6, 2024

I'm having this problem too.

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

No branches or pull requests

2 participants