-
카테고리
-
세부 분야
프론트엔드
-
해결 여부
미해결
여기까지 했는데 runtime 에러가 발생합니다
22.04.26 23:14 작성 조회수 157
2
lint로 잡혀서 몇가지 수정한 부분을 제외한 나머지는 강의내용과 동일합니다.
수정된 부분
1. index.tsx
import CategoryList, { CategoryListProps } from 'components/Main/CategoryList'
CategoryListProps 추가
edges.reduce(
(
list: CategoryListProps['categoryList'],
{
node: {
frontmatter: { categories },
},
}: PostListItemType,
PostType -> PostListItemType 로 수정
여기까지 한 부분 것헙에 푸시해두었습니다.
https://github.com/myBabyGrand/gatsbyBlog
commit ID : 88cf7df165b166d0b08b3504a73e1c85e5e21095
답변을 작성해보세요.
0
amuro_ray
질문자2022.04.26
원인 찾았습니다.
추가한 md에 meta정보 등록을 안했네요 ㅎㅎ;;
저랑 같은 에러가 나오셨다면
아래 강좌에서 두번째로 나오는 소스코드 참고하시기 바랍니다.
Markdown 파일 추가 후, GraphQL Query 확인해보기
contents/test.md
답변 1