Next.js Discord

Discord Forum

unclear errors with app router

Unanswered
Gull-billed Tern posted this in #help-forum
Open in Discord
Gull-billed TernOP
I'm getting this unrelated error anytime I make a mistake in my code.
Error: async/await is not yet supported in Client Components, only Server Components. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.

I know for sure it's unrelated with the error I currently have. I'm getting this error when I'm, for example, trying to use a property on an object that is undefined. Anyone any idea how to fix this?

0 Replies