Back to Nuxt

NUXT_E1007

docs/errors/e1007.md

4.5.2501 B
Original Source

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{to="/docs/api/utils/define-page-meta"} ::