강의

멘토링

커뮤니티

인프런 커뮤니티 질문&답변

작성자 없음

작성자 정보가 삭제된 글입니다.

[리뉴얼] React로 NodeBird SNS 만들기

로그인 폼 만들기

잘되다가 LoginForm 부터 에러가 뜹니다

작성

·

208

1

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.
Source

pages\_document.tsx (91:33) @ Function.getInitialProps


  89 |     }
  90 | 
> 91 |     const { html, head } = await ctx.renderPage({ enhanceApp })
     |                                 ^
  92 |     const styles = [...flush()]
  93 |     return { html, head, styles }
  94 |   }
다 확인해보고 똑같이 따라쳤는데
무슨 에러인지 알 수 가 없네요 ㅠ

답변 1

0

제로초(조현영)님의 프로필 이미지
제로초(조현영)
지식공유자

export default 모듈명

이런 것 중에 빠뜨리신 게 있는 것 같습니다.

작성자 없음

작성자 정보가 삭제된 글입니다.

질문하기