From 79d5634c6949a9ee37a56ef2877d96b084056f9c Mon Sep 17 00:00:00 2001 From: kevin olson Date: Mon, 14 Nov 2022 04:28:31 -0600 Subject: [PATCH] docs: add a bit more detail in the `definePageMeta` warning to specify it needs to be in a page (#8923) --- packages/nuxt/src/pages/runtime/composables.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nuxt/src/pages/runtime/composables.ts b/packages/nuxt/src/pages/runtime/composables.ts index 740fb991f5e..71cead02fbc 100644 --- a/packages/nuxt/src/pages/runtime/composables.ts +++ b/packages/nuxt/src/pages/runtime/composables.ts @@ -44,8 +44,8 @@ declare module 'vue-router' { const warnRuntimeUsage = (method: string) => console.warn( `${method}() is a compiler-hint helper that is only usable inside ` + - 'the script block of a single file component. Its arguments should be ' + - 'compiled away and passing it at runtime has no effect.' + '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.' ) // eslint-disable-next-line @typescript-eslint/no-unused-vars