https://supabase.com/ logo
Hi Community! I am new to supabase and could use ...
# help
v
Hi Community! I am new to supabase and could use some help: Building in NextJS and everything is working fine until i try and import
{supabase} from "../../utils/supabaseClient.js"
Then I get the following error:
Copy code
error - ./utils/supabaseClient.js:1:0
Module not found: Can't resolve '@supabase/supabase.js'
> 1 | import { createClient } from "@supabase/supabase.js";
  2 | 
  3 | const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL;
  4 | const supabaseAnonKey = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY;

Import trace for requested module:
./pages/schedule.js
n
Hello @Vixy88! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
s
The import name is incorrect, you have
@supabase/supabase.js
, but it should be
@supabase/supabase-js
. Notice the hyphen before the js instead of a period.
v
Oh god.. I am sorry, that is just so so annoying.. 😆
n
Thread was archived by @Vixy88. Anyone can send a message to unarchive it.