diff --git a/packages/nuxt3/src/pages/macros.ts b/packages/nuxt3/src/pages/macros.ts index 5bd7380a19..30ed0a2e79 100644 --- a/packages/nuxt3/src/pages/macros.ts +++ b/packages/nuxt3/src/pages/macros.ts @@ -13,6 +13,7 @@ export const TransformMacroPlugin = createUnplugin((options: TransformMacroPlugi name: 'nuxt:pages-macros-transform', enforce: 'post', transformInclude (id) { + if (!id || id.startsWith('\x00')) { return } const { search, pathname } = parseURL(id) return pathname.endsWith('.vue') || !!parseQuery(search).macro },