Skip to content

Conversation

@wys0530
Copy link

@wys0530 wys0530 commented May 10, 2025

구현 기능

image
image

글 목록 보기, 글 보기, 글 작성하기, 댓글 보기, 댓글 작성하기 기능이 있는 미니 블로그 만들기

과제 정리

https://hazel-substance-59d.notion.site/7-16-1eb827a4a7d4809cbdf7d7dfb9d4e2a2?pvs=4

어려웠던 점

사실 아직 해결이 안 되었는데, 메인 페이지에서 글을 클릭하면 글 보기 화면으로 넘어가야한는데, 계속 오류가 발생합니다.. ㅠㅠ 해결하려고 했지만 도저히 해결이 안 되고, 심지어 전부 강사님 깃허브 코드를 넣었는데도 계속 똑같은 오류가 발생해서..우선 그대로 제출합니다 ㅜㅜ
(위 사진 중 두번째 에러 사진이 글 목록 중 하나를 클릭했을 때 -주소가 /post/1 일때- 발생하는 오류입니다)
콘솔창 오류
image

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

Check the render method of PostViewPage.
at createFiberFromTypeAndProps (react-dom-client.development.js:4259:1)
at createFiberFromElement (react-dom-client.development.js:4273:1)
at createChild (react-dom-client.development.js:7296:1)
at reconcileChildrenArray (react-dom-client.development.js:7628:1)
at reconcileChildFibersImpl (react-dom-client.development.js:7949:1)
at react-dom-client.development.js:8057:1
at reconcileChildren (react-dom-client.development.js:8619:1)
at beginWork (react-dom-client.development.js:10732:1)
at runWithFiberInDEV (react-dom-client.development.js:1518:1)
at performUnitOfWork (react-dom-client.development.js:15130:1)Understand this error
hook.js:608

An error occurred in the

component.

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.

@wys0530 wys0530 changed the base branch from main to member/yunsoo May 10, 2025 15:02
@wys0530 wys0530 changed the title [우윤수] 6주차 과제 제출 [우윤수] 7주차 과제 제출 May 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant