supabase icon indicating copy to clipboard operation
supabase copied to clipboard

Nuxt Dev Server warnings after installing module: Some plugins are not exposing a function and skipped

Open robertpatrick opened this issue 2 years ago • 5 comments

Version

@nuxtjs/supabase: 1.0.2 nuxt: 3.0.0

Reproduction Link

https://github.com/robertpatrick/mastering-nuxt-3

Steps to reproduce

  1. git clone [email protected]:robertpatrick/mastering-nuxt-3.git
  2. cd mastering-nuxt-3
  3. npm i
  4. Create .env file with SUPABASE_URL and SUPABASE_KEY variables.
  5. npm run dev

What is Expected?

The dev server to start without warnings...

What is actually happening?

On running npm run dev, I see the following warnings after adding the @nuxtjs/supabase module.

✔ Nitro built in 496 ms                                         nitro 13:59:11
ℹ Vite client warmed up in 2036ms                                     13:59:11
[warn] [nuxt] Some plugins are not exposing a function and skipped: [ 13:59:15
  {
    name: 'auth-redirect',
    setup: [Function: setup],
    __nuxt_plugin: true
  },
  {                                                                   13:59:07
    name: 'supabase',
    enforce: 'pre',
    setup: [AsyncFunction: setup],
    __nuxt_plugin: true
  }
]

robertpatrick avatar Aug 06 '23 19:08 robertpatrick

Hello @robertpatrick Did you manage to fix the error? Because I have the same as you but I do not pass my auth thanks

laurentRichir avatar Aug 30 '23 14:08 laurentRichir

@laurentRichir No. I ended up having to drop back to an earlier version of supabase to get it to work properly...

robertpatrick avatar Aug 30 '23 14:08 robertpatrick

I got it to work on 0.3.4. Any chance a more current version works?

robmontesinos avatar Oct 03 '23 04:10 robmontesinos

I found that nuking the node_modules folder, and doing a fresh npm install seemed to have to resolved the issue for me locally.

JKausits avatar Oct 06 '23 17:10 JKausits

I am getting this error, havn't been able to re-create @JKausits experience and looking for a fix. I am also finding that the useSupabaseClient() is returning undefined. Not sure why, but I can get supabase-js to successfully create a client using the createClient() function.

Update 1 Just for more clarity, I have tried to use both current methods of injecting the Url and Key, including the .env file, and the seemingly new runtimeConfig method.

Update 2 Just found out that I was using Nuxt 3.0.0. While I have switched to firebase out of spite, it recon that would be been an issue. The reason that i was using that version is because it was the version set by vercel on one of their templates and I didn't check it.

PI-Gorbo avatar Oct 11 '23 00:10 PI-Gorbo