Repository navigation
Cannot read properties of null (reading 'useState') #82099
Replies: 5 comments
|
Curious about step 3 here? why are you doing that? |
|
The useState error is coming from @supabase/auth-ui-react loading its own React copy, which matches the stack trace. I’d remove the webpack React alias/transpilation workaround and first make sure react and react-dom are on matching versions. The Auth UI package itself has had this exact useState/React-version problem |
|
This error usually happens in Next.js (App Router) when a Client Component or a library that uses React hooks (like Here are two solutions to fix it: 1. Add
|
|
In the Next.js App Router (the The Fix: Add
|
|
This error usually means Put this as the very first line of the file that calls 'use client'
import { useState } from 'react'Also make sure — |
Uh oh!
There was an error while loading. Please reload this page.
Summary
I'm new to coding anything, some knowledge but not much. I'm trying to just create a login page connecting supabase and I keep getting this error. ChatGPT says i'm veering off too much and suggested I post here. BTW this is my first post, I'm just learning
Additional information
No response
Example
No response
All reactions