definePageMeta is throwing eslint error message "Cannot find name definePageMeta" #24975
Closed
ramyohan90
started this conversation in
General
Replies: 1 comment 2 replies
-
Closing this. Nuxt dev tools was not installed properly in VS Code. Hence intellisense failed. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using Nuxt@3.9.0 & Vue@3.4.0
I have a vue component under pages (pages/login.vue). I have enabled the Nuxt Extensions in VS Code to support intellisense in code space.
I need to call a middleware in the vue component and hence used definePageMeta to call the middleware.
Although I can able to call the middleware, VS Code is throwing error message "Cannot find name definePageMeta".
Please let know what kind of setup I should do, so that VS Code resolves this error.
As per Nuxt Documentation, we can call middleware in the vue components under pages and the router will identify definePageMeta. I followed the same process, but VS Code shows eslint error.
Please help.
Beta Was this translation helpful? Give feedback.
All reactions