mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-21 07:59:33 +00:00
docs: update link to composables doc (#23989)
This commit is contained in:
parent
a9218239ea
commit
64b99b1007
@ -390,7 +390,7 @@ export function useNuxtApp (): NuxtApp {
|
|||||||
|
|
||||||
if (!nuxtAppInstance) {
|
if (!nuxtAppInstance) {
|
||||||
if (import.meta.dev) {
|
if (import.meta.dev) {
|
||||||
throw new Error('[nuxt] A composable that requires access to the Nuxt instance was called outside of a plugin, Nuxt hook, Nuxt middleware, or Vue setup function. This is probably not a Nuxt bug. Find out more at `https://nuxt.com/docs/guide/concepts/auto-imports#using-vue-and-nuxt-composables`.')
|
throw new Error('[nuxt] A composable that requires access to the Nuxt instance was called outside of a plugin, Nuxt hook, Nuxt middleware, or Vue setup function. This is probably not a Nuxt bug. Find out more at `https://nuxt.com/docs/guide/concepts/auto-imports#vue-and-nuxt-composables`.')
|
||||||
} else {
|
} else {
|
||||||
throw new Error('[nuxt] instance unavailable')
|
throw new Error('[nuxt] instance unavailable')
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user