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

Router can't avoid '/api' route #15263

Closed
silencerspirit opened this issue Oct 26, 2022 · 2 comments
Closed

Router can't avoid '/api' route #15263

silencerspirit opened this issue Oct 26, 2022 · 2 comments

Comments

@silencerspirit
Copy link
Contributor

silencerspirit commented Oct 26, 2022

Environment

  • Operating System: Darwin
  • Node Version: v16.14.0
  • Nuxt Version: 3.0.0-rc.12
  • Nitro Version: 0.6.0
  • Package Manager: yarn@1.22.10
  • Builder: vite
  • User Config: components, typescript, runtimeConfig, modules, vite, css, tailwindcss, router, treeshakeClientOnly
  • Runtime Modules: @pinia/nuxt@0.4.3, @nuxtjs/tailwindcss@5.3.5
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-gsv9a5-y4wb2y?file=app.vue,nuxt.config.ts

Describe the bug

After migrate from rc11 to rc12 vite server proxy don't work. Nuxt(vue router) recursively trying get api route and doesn't ignore them;

Additional context

No response

Logs

[Vue Router warn]: No match found for location with path "/api/pages/menu"
[Vue Router warn]: No match found for location with path "/api/pages/menu"
[Vue Router warn]: No match found for location with path "/api/pages/menu"
[Vue Router warn]: No match found for location with path "/api/pages/menu"
[Vue Router warn]: No match found for location with path "/api/pages/menu"
@bcspragu
Copy link

Seems like this is the same issue as #15195

@ironytr
Copy link

ironytr commented Oct 26, 2022

this issue continues since 3.0.0-rc.11-27720657.a18f177 version.

@danielroe danielroe closed this as not planned Won't fix, can't repro, duplicate, stale Oct 26, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
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

4 participants