NuxtN
Nuxt4y ago
6 replies
Dan H

Can you use definePageMeta within pages registered by a module?

I am registering some pages using the extendPages function within a module, but seeing the following warning while running the site:

definePageMeta() is a compiler-hint helper that is only usable inside the script block of a single file component which is also a page. Its arguments should be compiled away and passing it at runtime has no effect.


I have added the call within <script setup> of my pages, it isn't used anywhere else, and only has static values supplied. I'm not sure if I'm doing something wrong? Thanks
Was this page helpful?