Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With module activated i got [500] useState is not defined . Fresh install #190

Closed
wojtekpiskorz opened this issue Jun 2, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@wojtekpiskorz
Copy link

wojtekpiskorz commented Jun 2, 2023

Version

@nuxtjs/supabase:
nuxt:

Reproduction Link

https://github.com/wojtekpiskorz/nuxt-playground

Steps to reproduce

Fresh install of nuxt with npx nuxi init
Install supabase module with
npm install @nuxtjs/supabase --save-dev

add module to nuxt config
modules: ['@nuxtjs/supabase'],

run npm run dev

What is Expected?

Regular starter template with 2 warning regarding missing subabase .env credentials.

What is actually happening?

After npm run dev when I go to localhost3000

[nuxt] [request error] [unhandled] [500] useState is not defined                                                                                             12:41:30 PM
  at Module.useSupabaseUser (./node_modules/@nuxtjs/supabase/dist/runtime/composables/useSupabaseUser.mjs:4:16)  
  at Object.setup (./node_modules/@nuxtjs/supabase/dist/runtime/plugins/supabase.server.mjs:14:38)  
  at wrapper (./node_modules/nuxt/dist/app/nuxt.js:191:21)  
  at ./node_modules/nuxt/dist/app/nuxt.js:111:58  
  at fn (./node_modules/nuxt/dist/app/nuxt.js:208:44)  
  at Object.callAsync (./node_modules/unctx/dist/index.mjs:68:55)  
  at ./node_modules/nuxt/dist/app/nuxt.js:210:56  
  at Object.runWithContext (./node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:3855:18)  
  at callWithNuxt (./node_modules/nuxt/dist/app/nuxt.js:210:24)  
  at Object.runWithContext (./node_modules/nuxt/dist/app/nuxt.js:32:29) (repeated 4 times)

If I commend out the supabase module in config app works

@wojtekpiskorz wojtekpiskorz added the bug Something isn't working label Jun 2, 2023
@nabakdev
Copy link

nabakdev commented Jun 2, 2023

faced the same issue, but when I downgraded to version 0.3.5, the problem disappeared

@larbish larbish closed this as completed Jun 2, 2023
Copy link
Collaborator

larbish commented Jun 2, 2023

Should be fixed in last version. Could you have a check ? 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants