Skip to content

fix: not working with Nuxt v3.1.0 #222

Description

@tlebeitsuk

🐛 The bug

Getting the following error with the latest version of Nuxt v3.1.0:

[Vue warn]: Component "RouterLink" has already been registered in target app. [Vue warn]: Component "RouterView" has already been registered in target app. [nuxt] [request error] [unhandled] [500] Cannot set property $router of #<Object> which has only a getter at Object.install (./node_modules/.pnpm/vue-router@4.1.6_vue@3.2.45/node_modules/vue-router/dist/vue-router.mjs:3515:49) at Object.use (./node_modules/.pnpm/@vue+runtime-core@3.2.45/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:4360:28) at ./node_modules/.pnpm/nuxt@3.1.0/node_modules/nuxt/dist/pages/runtime/plugins/router.mjs:45:18 at fn (./node_modules/.pnpm/nuxt@3.1.0/node_modules/nuxt/dist/app/nuxt.mjs:151:27) at Object.callAsync (./node_modules/.pnpm/unctx@2.1.1/node_modules/unctx/dist/index.mjs:49:19) at callWithNuxt (./node_modules/.pnpm/nuxt@3.1.0/node_modules/nuxt/dist/app/nuxt.mjs:153:23) at applyPlugin (./node_modules/.pnpm/nuxt@3.1.0/node_modules/nuxt/dist/app/nuxt.mjs:97:29) at Module.applyPlugins (./node_modules/.pnpm/nuxt@3.1.0/node_modules/nuxt/dist/app/nuxt.mjs:107:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async createNuxtAppServer (./node_modules/.pnpm/nuxt@3.1.0/node_modules/nuxt/dist/app/entry.mjs:29:7)

🛠️ To reproduce

https://stackblitz.com/edit/github-ezsh3s

🌈 Expected behaviour

.

ℹ️ Additional context

No response

Activity

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions