mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +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,8 +44,8 @@ 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.'
|
||||||
)
|
)
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
|
Loading…
Reference in New Issue
Block a user