You have a custom pages/_document.js
that doesn't have the components required for Next.js to render correctly.
Ensure that your _document.js
is importing and rendering all of the required components.
In this case you are most likely not rendering the <Head>
component imported from next/document
.