typescript error with router #639
Unanswered
folks-samuel-cb
asked this question in
Questions and Help
Replies: 2 comments
-
Du coup si ma réponse ne te semble pas clair. Je parle Français aussi. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hard for anybody to help without the actual failing code |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I am using vue-router and unplugin-vue-router and just trying to replace router i got typescript errors
The only way to fix it is to always cast as RouteLocationRaw
router.replace({ name: '/' } as RouteLocationRaw);
I am getting errors only with the pattern {name: keyof RouteNameMap }
Beta Was this translation helpful? Give feedback.
All reactions