Initialising Supabase client on latest version with nextjs
Hi,
I just upgraded to latest
rc
of Supabase to use the new auth component, unfortunately, now I get the error attached in the image.
I am not doing anything complicated, my supabaseClient.ts
looks like this (ignore the keys I have them correctly being passed):
Login.tsx looks like this:
This is on version 12.2.2 of NextJS - any ideas? I haven't messed around in the web world for a long time so I am guessing it might be something in my tsconfig that I am missing blindly.
3 Replies
can you run
npm list @supabase/supabase-js
and post the results?@lukehennerley to me it looks like your webpack config tree shakes the needed
applySettingsDefaults
method.
Could you share these files: next.config.js
, package.json
and tsconfig.json
Another thing; i just tried @supabase/auth-ui-react
it seems to me that it still requires supabase v1 (but thats not the root of your error).