Basically I’m facing the following error in the latest version of next, when using useEffect it says that I need to define “use client” at the top of the file, so far okay, but when I go to define the Head, it can’t define the title or descriptions, then it recommends using metadata, but when using metadata, it returns the error because it says that it is not possible to use with the use client defined, then it stays in this loop. How to solve this?
I used it like this:
<Head>
<title>My Title</title>
<meta name="description" content="Site Description" />
</Head>
And now like this:
“use client”
export const metadatas = {
title: my title
,
description: my description
,
};
Christopher is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.