중간 배포 오류 일지 #105
Unanswered
punchdrunkard
asked this question in
00.TroubleShooting
중간 배포 오류 일지
#105
Replies: 1 comment
-
멋져용 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
공통적인 에러
key
props 정의가 안되어있을 때우선은 주석 처리와 같은 방법으로 막아두었지만,
앞으로 배포를 위하여 husky를 더 잘 이용할 필요가 있어보입니다ㅠㅠ
style 이
page
안에 있는 폴더에 함께 있는 경우위 사진처럼
pages
아래에 폴더가 선언되어있을 경우 나타나는 에러입니다.에러 메시지 :
Build optimization failed: found pages without a React Component as default export in
해결 방안 :
pages
아래 있는 페이지 컴포넌트 디렉터리 안에는style
을 정의하지 않고, 페이지 컴포넌트의 스타일은styles/pages/
에 정의합니다.논의 내용: 단, 현재
style
에 대한 경로 alias가 설정되어있지 않으므로, 이에 대한 설정이 필요합니다.(관련 이슈) alias 설정 #93
참고 자료:
https://velog.io/@yonghk423/Next.js-vercel-%EB%B0%B0%ED%8F%AC-%EC%97%90%EB%9F%AC
Beta Was this translation helpful? Give feedback.
All reactions