-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
After upgrading to RC.11, useRouter() cannot be used in composable #570
Comments
The same applies to |
Is this also the case in the official version of Vue 3? |
I only tested with Vue 2 and Nuxt bridge. I can't tell wether it works with Nuxt / Vue 3. |
Has it something to do with the vue-router 3.6 release adding useRoute() and useRouter() as composables for vue 2.7? |
Yes, this is because we switched to using the built-in vue-router composables. (We will need to partially revert that.) |
Possible duplicate of #554? |
Environment
Windows_NT
v16.17.1
3.0.0-rc.11
0.5.4
yarn@1.22.19
vite
ssr
,head
,css
,plugins
,components
,buildModules
,modules
,build
,vite
,serverHandlers
,devServerHandlers
,bridge
-
()
,@nuxt/bridge@3.0.0-27740081.058a6c1
Reproduction
nuxt-bridge-rc11.zip
Describe the bug
I used the command
npx nuxi@latest upgrade --force
from https://github.com/nuxt/framework/discussions/7691 and when trying to useuseRouter
I get the following error:useRouetr
is used only after clicking on the button, when the instance is ready. Everything works fine in RC.8Additional context
How can I safely roll back to RC.8?
Logs
No response
The text was updated successfully, but these errors were encountered: