From 64b99b1007e2f7ec875b4605fad988355de80b29 Mon Sep 17 00:00:00 2001 From: Hugo Torzuoli Date: Fri, 27 Oct 2023 23:53:09 +0200 Subject: [PATCH] docs: update link to composables doc (#23989) --- packages/nuxt/src/app/nuxt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nuxt/src/app/nuxt.ts b/packages/nuxt/src/app/nuxt.ts index 053eed35a3..8928dbdd26 100644 --- a/packages/nuxt/src/app/nuxt.ts +++ b/packages/nuxt/src/app/nuxt.ts @@ -390,7 +390,7 @@ export function useNuxtApp (): NuxtApp { if (!nuxtAppInstance) { 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 { throw new Error('[nuxt] instance unavailable') }