728x90
getserversideporps 내에서 console.log()하면 값이 나오는데
client에서는 계속 undefined만 나오는 오류발생.
삼일간 긴 시간을 삽질했으나 철자오류로
페이지 프롭이 컴포넌트로 전달이 안됐고 클라이언트에서 result를 받아올 수 없었다.
_app.jsx
export default function App({ Component, PageProps }) {
---> export default function App({ Component, pageProps }) {
PageProps -> pageProps로 해결완료!
'코딩' 카테고리의 다른 글
트위터 클론코딩: 2파일첨부하고 썸네일 나타내기 (0) | 2023.02.13 |
---|---|
react-router-dom v6 route에 prop속성 (0) | 2023.02.12 |
트위터 클론코딩 :1 (firebase,react) (0) | 2023.02.04 |
aggregate (0) | 2023.01.30 |
Next.JS 2 (0) | 2023.01.28 |