Update @supabase/auth-ui-react to have react and react-dom as peer dependencies.
I'm currently using react@next as dependency for my project. Installing @supabase/auth-ui-react ends up also including react@18.2.0. Here's the out for pnpm why react for my project:
Chore
Update
@supabase/auth-ui-react
to havereact
andreact-dom
as peer dependencies.I'm currently using
react@next
as dependency for my project. Installing@supabase/auth-ui-react
ends up also includingreact@18.2.0
. Here's the out forpnpm why react
for my project:This ends up crashing my app with an
Invalid hook call
error due to multiple copies of React.Describe the chore
react
andreact-dom
fromdependencies
topeerDependencies
anddevDependencies
.Additional context
For others who need a workaround; if you're using
pnpm
you can use the overrides functionality by updating your root package.json withI'd be happy to create a PR for this, guidelines just ask for contributors to submit an issue first.