NUXT_E1007

Compiler-hint helper called at runtime.

E1007

A compile-time macro such as definePageMeta() executed at runtime. These helpers are transformed away by the Nuxt build and must never run dynamically. Usually this means the macro was called inside a composable or a non-page component instead of directly in a page.

Resolution

Call the macro only at the top level of a page component's <script setup>. It cannot be used inside composables, conditionals, or non-page components.

Read more in Docs > API > Utils > Define Page Meta.
Was this helpful?