Using types in definePage() in beforeEnter() #672
Unanswered
AnnaYuS
asked this question in
Questions and Help
Replies: 1 comment
-
This might be a limitation of how the definePage works. To debug further use the Vue Devtools or the vite inspector plugin. This will allow you to see the virtual files created by unplugin-vue-router and dig deeper |
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.
-
I'm trying to use ts types in beforeEnter() guard in definePage()
And this breaks with
Uncaught SyntaxError: Missing initializer in const declaration
here is small reproduction: https://stackblitz.com/edit/github-ka9cvmwr?file=src%2Fpages%2Fabout.vue
Should this work? It looks like a bug. Is there a way around it?
Beta Was this translation helpful? Give feedback.
All reactions