DEV Community

_document.js error from ctx.renderPage().

dayo adeniji on January 17, 2022

Hi, While trying to apply Material-ui styles into a Next app, I am getting error from the _document.js file, in the ctx.renderPage( ) function Be...
Collapse
 
xkoredeus profile image
Sergey Nacharov

Hello there!

  1. Check imports in your app (components, pages). They should be named.
  2. Try to import head from 'next/head'.