mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +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) =>
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user