amrnn90 / breeze-nuxt

An application / authentication starter kit frontend in Nuxt3 for Laravel Breeze.
MIT License
198 stars 33 forks source link

Error 500 A composable that requires access to the nuxt instance.... #20

Closed kohlzz closed 12 months ago

kohlzz commented 12 months ago

Hello,

Since recently none working due error message;

"[nuxt] [request error] [unhandled] [500] [nuxt] A composable that requires access to the Nuxt instance was called outside of a plugin, Nuxt hook, Nuxt middleware, or Vue setup function." Any idea? I did this on a fresh installation.

Regards, Kohlzz

amrnn90 commented 12 months ago

Hi, I am unable to reproduce this. Can you show me the output of this command npx nuxi info?

kohlzz commented 12 months ago

This is the output of that command;

amrnn90 commented 12 months ago

Have you removed this from nuxt.config.ts file?

{
  experimental: {
    asyncContext: true,
  }
}
kohlzz commented 12 months ago

That was indeed the case, I removed it from the config somehow. Silly i didn't notice it but thank you, this worked :)

amrnn90 commented 12 months ago

Glad it worked out for you.

kohlzz commented 12 months ago

Hey, sorry i was too fast. It seems to work ony under ssr:false

Verzonden vanuit Mail voor Windows

Van: Amr Noman Verzonden: zaterdag 25 november 2023 18:52 Aan: amrnn90/breeze-nuxt CC: kohlzz; Author Onderwerp: Re: [amrnn90/breeze-nuxt] Error 500 A composable that requires accessto the nuxt instance.... (Issue #20)

Glad it worked out for you. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>