You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an error: No match for {"name":"LoginPage","params":{}}
Additional context
No response
Logs
No match for
{"name":"LoginPage","params":{}}
at createRouterError (./node_modules/vue-router/dist/vue-router.cjs.js:827:23)
at Object.resolve (./node_modules/vue-router/dist/vue-router.cjs.js:1406:23)
at Object.resolve (./node_modules/vue-router/dist/vue-router.cjs.js:2897:38)
at ReactiveEffect.fn (./node_modules/vue-router/dist/vue-router.cjs.js:2048:45)
at ReactiveEffect.run (./node_modules/@vue/reactivity/dist/reactivity.cjs.js:150:25)
at ComputedRefImpl.get value [as value] (./node_modules/@vue/reactivity/dist/reactivity.cjs.js:1090:39)
at ReactiveEffect.fn (./node_modules/vue-router/dist/vue-router.cjs.js:2050:35)
at ReactiveEffect.run (./node_modules/@vue/reactivity/dist/reactivity.cjs.js:150:25)
at ComputedRefImpl.get value [as value] (./node_modules/@vue/reactivity/dist/reactivity.cjs.js:1090:39)
at ReactiveEffect.fn (./node_modules/vue-router/dist/vue-router.cjs.js:2075:64)
The text was updated successfully, but these errors were encountered:
Nuxt 3 doesn't support configuration of the router via nuxt.config at all. Instead, use the extendPages function in a module or use the pages:extend hook.
But there is a property router.routes on nuxt.config. What's the purpose?
This is a Nuxt 2 property. This should be displayed in your IDE with the @version 2 tag. We're working on making this not show up at all in Nuxt 3 projects 🤞
Environment
Darwin
v14.18.0
3.0.0-27408103.b243891
yarn@1.22.11
Vite
vue
,modules
,buildModules
,build
,css
,app
,meta
,publicRuntimeConfig
,privateRuntimeConfig
,router
@nuxtjs/sitemap@2.4.0
nuxt-purgecss@1.0.0
Reproduction
nuxt.config.ts
export default defineNuxtConfig({ router: { routes: [ { path: '/login', name: 'LoginPage', }, ], }, })
*.vue
<NuxtLink :to="{ name: 'LoginPage' }">link</NuxtLink>
Describe the bug
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: