-
Notifications
You must be signed in to change notification settings - Fork 113
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
Missing current instance. useRouter() must be called inside <script setup> or setup() #169
Comments
Using |
Yep, but it doesn’t work. In nuxt/bridge#533 deleted useRoute, and this I added solution through nuxtApp. |
We should probably fix the upstream issue instead of adding a workaround in all modules where useRouter is used. |
I agree, however this fix allows the system to work now. |
@P4sca1 when this problem will resolve global, what do you thins about this? |
I don't know when the issue gets resolved. Maybe @danielroe can tell. But I think Nuxt 3 issues have priority before Nuxt Bridge issues at the moment. |
Yes, I think we should fix this in bridge. |
It would be great! ❤️ |
Hi ! |
@danielroe look like revert or no? |
Can you confirm the bug is fixed with latest bridge? |
Works good! |
Version
@nuxtjs/color-mode: 3.1.8
Nuxi 3.0.0-rc.11
Nuxt 2.16.0-27720022.54e852f with Nitro 0.5.4
What is Expected?
When using nuht/bridge with nuxt-rc.11, an error appears.
![image](https://user-images.githubusercontent.com/26242554/194948924-069f9f00-f805-4e61-ad9b-32e17bd09ea9.png)
The text was updated successfully, but these errors were encountered: