supabase / ui

Supabase UI Library
ui-storybook-pre-release.vercel.app
MIT License
1.57k stars 151 forks source link

Supabase Auth UI does not function in TypeScript #372

Closed CompeyDev closed 2 years ago

CompeyDev commented 2 years ago

Bug report

Describe the bug

The examples given on the page https://ui.supabase.io/components/auth do not seem to work (in TypeScript with the latest Next.js).

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

export default function AuthBasic() {
  return (
    <Auth.UserContextProvider supabaseClient={supabase}>
      <Container supabaseClient={supabase}>
        <Auth onlyThirdPartyProviders={true} supabaseClient={supabase} providers={['google', 'facebook', 'github']} />
      </Container>
    </Auth.UserContextProvider>
  )
}

Expected behavior

The given code would compile with no errors.

Screenshots

image

System information

Additional information

While installing the UI package, A bunch of errors with peer dependencies occurred: image

CompeyDev commented 2 years ago

More errors that seem to occur with the package image

This occurs within the package itself.

CompeyDev commented 2 years ago

Sorry for accidentally closing the issue! 😅

phongplus commented 2 years ago

remove and will work.

MildTomato commented 2 years ago

This component is being deprecated.

Would it be ok to please refer to https://github.com/supabase-community/auth-ui

It is a new NPM package, so please use the new package 😄

CompeyDev commented 2 years ago

remove and will work.

It would not.

CompeyDev commented 2 years ago

This component is being deprecated.

Would it be ok to please refer to https://github.com/supabase-community/auth-ui

It is a new NPM package, so please use the new package 😄

Sure, thanks for the help :)

Will let you know if I'm running into more issues.

MildTomato commented 2 years ago

I'm going to close this issue for now since we have moved this component to https://github.com/supabase-community/auth-ui