Skip to content

Commit

Permalink
docs: update link to composables doc (#23989)
Browse files Browse the repository at this point in the history
  • Loading branch information
HZooly committed Oct 27, 2023
1 parent a921823 commit 64b99b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt/src/app/nuxt.ts
Expand Up @@ -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')
}
Expand Down

0 comments on commit 64b99b1

Please sign in to comment.