Howdy there everyone I'm getting an error for "Cre...
# help
y
Howdy there everyone I'm getting an error for "CreateClient is not defined" here is my code for the supabaseClient.js
Copy code
js
// @ts-nocheck
const supabaseUrl = "XXX"
const supabaseAnonKey = "XXX"
// Create a single supabase client for interacting with your database
export const supabase = createClient(supabaseUrl, supabaseAnonKey);
note the XXX is where my url and key is. any help would be huge! I also did
npm ci
to clean install my modules incase that was the issue
n
Hello ! This thread has been automatically created from your message in a ``few seconds ago``. Pinging @User so that they see this as well! 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.
g
Not sure on your environment but you need an import or script load depending... import { createClient } from '@supabase/supabase-js'
n
Yeehawlerz101 (2022-04-03)
y
Yup thats what it was. I thought it was all bundled together thank you @User !
n
Thread was archived by . Anyone can send a message to unarchive it.