---
title: "NUXT_E1007"
description: "Compiler-hint helper called at runtime."
canonical_url: "https://nuxt.com/docs/4.x/errors/e1007"
---
# 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="https://nuxt.com/docs/4.x/api/utils/define-page-meta">



</read-more>


## Sitemap

See the full [sitemap](https://nuxt.com/sitemap.md) for all pages.
