0

I'm trying to deploy a Next.js app on Vercel, but I get this error: Error: Component definition is missing display name react/display-name.

Apparently the problem comes from the page pages/_document.js, which I copied from here Next.js GitHub. Can someone help me to fix this? Thanks!

juliomalves
  • 42,130
  • 20
  • 150
  • 146
  • 1
    It is an ESLint error, and has nothing to do with the `_document` that you have linked to. Paste the whole error message and the related code. Also once refer the [docs](https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/display-name.md) to figure what you might be doing wrong. You can also disable linting before build. [Ref.](https://nextjs.org/docs/api-reference/next.config.js/ignoring-eslint) – brc-dd Sep 15 '21 at 14:19
  • Please refer to this: https://stackoverflow.com/questions/52992932/component-definition-is-missing-display-name-react-display-name. – NItin Vaja Sep 15 '21 at 14:23

0 Answers0