mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
docs: add a bit more detail in the definePageMeta
warning to specify it needs to be in a page (#8923)
This commit is contained in:
parent
8c4ff5c585
commit
79d5634c69
@ -44,7 +44,7 @@ declare module 'vue-router' {
|
|||||||
const warnRuntimeUsage = (method: string) =>
|
const warnRuntimeUsage = (method: string) =>
|
||||||
console.warn(
|
console.warn(
|
||||||
`${method}() is a compiler-hint helper that is only usable inside ` +
|
`${method}() is a compiler-hint helper that is only usable inside ` +
|
||||||
'the script block of a single file component. Its arguments should be ' +
|
'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.'
|
'compiled away and passing it at runtime has no effect.'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user