Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error injecting type definitions with auth-helpers-sveltekit #456

Closed
mmmmillar opened this issue Feb 28, 2023 · 2 comments
Closed

Error injecting type definitions with auth-helpers-sveltekit #456

mmmmillar opened this issue Feb 28, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@mmmmillar
Copy link

Bug report

Describe the bug

Typescript error "Expected 0 type arguments, but got 1" when doing type injection as described here but with "@supabase/auth-helpers-sveltekit"

There was a previous ticket #407 which is marked as closed but this does not work for me.

To Reproduce

  1. Run supabase gen types typescript --local > ./app/src/lib/generated/definitions.ts

  2. Add Superbase interface to app.d.ts and reference the generated types
    image

  3. Add type argument to createClient()
    image

System information

  • Version of supabase-js: 2.8.0
  • Version of auth-helpers-sveltekit: 0.8.7
@mmmmillar mmmmillar added the bug Something isn't working label Feb 28, 2023
@david-plugge
Copy link
Collaborator

No need to add the types in createClient, they are automatically set by the type in app.d.ts

@mmmmillar
Copy link
Author

Ah! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants