You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Typescript throws error "Expected 0 type arguments, but got 1" and types do not get injected when import { createClient } from "@supabase/auth-helpers-sveltekit"
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
`
import { createClient } from "@supabase/auth-helpers-sveltekit"
import type { Database } from "./database.types";
Bug report / Feature request
Describe the bug / missing feature
Typescript throws error "Expected 0 type arguments, but got 1" and types do not get injected when import { createClient } from "@supabase/auth-helpers-sveltekit"
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
`
import { createClient } from "@supabase/auth-helpers-sveltekit"
import type { Database } from "./database.types";
export const supabaseClient = createClient{PUBLIC_SUPABASE_URL, PUBLIC_SUPABASE_ANON_KEY,}
`
Expected behavior
Same behaviour when importing { createClient } from "@supabase/supabase-js"
System information
Additional context
When importing from "@supabase/supabase-js" type injecting works but logout functionality does not work any more
Workaround
Create 2 clients one with the import from "@supabase/supabase-js" and one with the import from "@supabase/auth-helpers-sveltekit"
The text was updated successfully, but these errors were encountered: