Builds broken in 13.5.3, worked in 13.4.19
Unanswered
Abyssinian posted this in #help-forum
AbyssinianOP
I tried updating Next.js in an Nx monorepo with a couple of Next apps that all use the old pages router.
It seems to fail on the static pages such as 404:
Error occurred prerendering page "/fr/404". Read more: https://nextjs.org/docs/messages/prerender-error
Error: <Html> should not be imported outside of pages/_document.
Read more: https://nextjs.org/docs/messages/no-document-import-in-page
The only place we have imports from 'next/document' is in 'pages/_document.tsx'.
Has anyone else experienced this or simliar after updating Next.js to 13.5.x?
It seems to fail on the static pages such as 404:
Error occurred prerendering page "/fr/404". Read more: https://nextjs.org/docs/messages/prerender-error
Error: <Html> should not be imported outside of pages/_document.
Read more: https://nextjs.org/docs/messages/no-document-import-in-page
The only place we have imports from 'next/document' is in 'pages/_document.tsx'.
Has anyone else experienced this or simliar after updating Next.js to 13.5.x?