supabase-community / auth-ui

Pre-built Auth UI for React
https://supabase.com/docs/guides/auth/auth-helpers/auth-ui
MIT License
487 stars 121 forks source link

[React] Update supabase-js devdependency version #109

Closed thorwebdev closed 1 year ago

thorwebdev commented 1 year ago

When using supabase-js v2.5.0 in my project, I get this type error:

www:build: Type error: Type 'import("/vercel/path0/apps/www/node_modules/@supabase/supabase-js/dist/module/SupabaseClient").default<any, "public", any>' is not assignable to type 'import("/vercel/path0/node_modules/@supabase/supabase-js/dist/module/SupabaseClient").default<any, "public", any>'.
--
16:10:23.820 | www:build:   Property 'supabaseUrl' is protected but type 'SupabaseClient<Database, SchemaName, Schema>' is not a class derived from 'SupabaseClient<Database, SchemaName, Schema>'.
16:10:23.820 | www:build:
16:10:23.820 | www:build:   79 \|                   </p>
16:10:23.820 | www:build:   80 \|                 </div>
16:10:23.820 | www:build: > 81 \|                 <Auth.UserContextProvider supabaseClient={supabase}>
16:10:23.821 | www:build:      \|                                           ^
16:10:23.821 | www:build:   82 \|                   <AuthContainer supabaseClient={supabase}>
16:10:23.822 | www:build:   83 \|                     <Auth

I have an assumption that this might be because of the RC dev dependency.

Issue happening here: https://github.com/supabase/supabase/pull/12220

silentworks commented 1 year ago

This package should now be using the latest version of Supabase JS.