Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

342
Visualizações
NextJS Error: Element type is invalidServer Error Error: Element type is invalid

I'm working on a NextJS project right now (I'm a beginner) and got this error when I wanted to do npm run dev. I've no errors in the code, nothing. No idea where it came from ...

Thank you in advance !

Server Error
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

This error happened while generating the page. Any console logs will be displayed in the terminal window.
Call Stack
ReactDOMServerRenderer.render
file:///home/selena/Documents/Devis/app-devis-lyon-js-react-sept21/node_modules/react-dom/cjs/react-dom-server.node.development.js (4053:17)
ReactDOMServerRenderer.read
file:///home/selena/Documents/Devis/app-devis-lyon-js-react-sept21/node_modules/react-dom/cjs/react-dom-server.node.development.js (3690:29)
Object.renderToString
file:///home/selena/Documents/Devis/app-devis-lyon-js-react-sept21/node_modules/react-dom/cjs/react-dom-server.node.development.js (4298:27)
Object.renderPage
file:///home/selena/Documents/Devis/app-devis-lyon-js-react-sept21/node_modules/next/dist/server/render.js (686:46)
Object.defaultGetInitialProps
file:///home/selena/Documents/Devis/app-devis-lyon-js-react-sept21/node_modules/next/dist/server/render.js (316:51)
Function.getInitialProps
node_modules/next/dist/pages/_document.js (145:19)
Object.loadGetInitialProps
file:///home/selena/Documents/Devis/app-devis-lyon-js-react-sept21/node_modules/next/dist/shared/lib/utils.js (69:29)
renderDocument
file:///home/selena/Documents/Devis/app-devis-lyon-js-react-sept21/node_modules/next/dist/server/render.js (699:48)
Object.renderToHTML
file:///home/selena/Documents/Devis/app-devis-lyon-js-react-sept21/node_modules/next/dist/server/render.js (774:34)
runMicrotasks
<anonymous>

about 4 years ago · Santiago Gelvez
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda