Next.js Discord

Discord Forum

Application error: a client-side exception has occurred...

Unanswered
Yellowhead catfish posted this in #help-forum
Open in Discord
Yellowhead catfishOP
You can view all my code here: https://github.com/tookender/website
And the code for the Login button: https://github.com/tookender/website/blob/main/src/components/navbar.tsx#L54
Live preview of the site: https://korin.dev (click login button for error)
Trying to use PostgreSQL with Vercel btw.

9 Replies

Yellowhead catfishOP
bump
Britannia Petite
you can't have onClick that requires 'use client' in an async component i think ?
put your button component in its own component on put 'use client' in top of it, should work
@Yellowhead catfish
@Britannia Petite you can't have onClick that requires 'use client' in an async component i think ?
Yellowhead catfishOP
and btw i get this in the console
Warning: React does not recognize the isDisabled prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase isdisabled instead. If you accidentally passed it from a parent component, remove it from the DOM element.
im ngl that might be a next ui issue