diff --git a/server/render.js b/server/render.js index 90407dda..4eed7e77 100644 --- a/server/render.js +++ b/server/render.js @@ -114,7 +114,7 @@ async function doRender (req, res, pathname, query, { if (isResSent(res)) return - if (!Document.prototype || !Document.prototype.isReactComponent) throw new Error('_document.js is not exporting a React element') + if (!Document.prototype || !Document.prototype.isReactComponent) throw new Error('_document.js is not exporting a React component') const doc = createElement(Document, { __NEXT_DATA__: { props,