Skip to content
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

In definePageMeta, the middleware name must be set as NavigationGuard #11

Open
xavier-ottolini opened this issue Sep 10, 2024 · 0 comments

Comments

@xavier-ottolini
Copy link

I have upgraded Vue to 3.5.0 and Nuxt to 3.13.1.
Since this upgrade, there is an error in ESLint:
at the line:

definePageMeta({
  middleware: [
    'nuxt-permissions' // Type 'string' is not assignable to type 'NavigationGuard'.
  ],
  roles: [],
  permissions: [
    'coaching-persona-update',
    'coachgin-persona-read'
  ]
})

Type 'string' is not assignable to type 'NavigationGuard'.
How to set "nuxt-permission" as Middleware?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant