I am trying to create a page with dashboard layout and a page with default Next.js 13 layout.
I have a problem on the dashboard page.
When I go to the addresses in the dashboard, the display of menus, items, etc. is correct, and to check the error, I deleted the components and I have only two pages with one link.
But it still gives errors in the browser console:
Warning: You are mounting a new body component when a previous one has not first unmounted. It is an error to render more than one body component at a time and attributes and children of these components will likely fail in unpredictable ways.
Please only render a single instance of and if you need to mount a new one, ensure any previous ones have unmounted first.
and:
Warning: validateDOMNesting(...): cannot appear as a child of
<main>
.
<div>
inside of a<p>
tag (block element inside of an inline element). – Quintile