Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- BOJ
- 브라우저동작
- componentDidUpdate
- NextImageSpan
- 브루트포스
- react
- getServerSideProps
- 판교브루클린
- 자바스크립트엔진
- getInitialProps
- Next이미지
- access token
- nestjs
- 브라우저동작원리
- 리팩터링2판
- 이벤트루프
- NextImage
- resource owner
- 매크로태스크큐
- flexible box
- backend
- nextjs
- CSS
- NeXT
- 마이크로태스크큐
- 개발도서추천
- resource server
- prevProps
- 자바스크립트런타임
- 콜스택
Archives
- Today
- Total
목록getInitialProps (1)
imgyuzzzang
[NEXT JS] getServerSideProps는 Date 객체를 허락하지 않아,,
츨처: https://github.com/vercel/next.js/issues/13209#issuecomment-633149650 세 줄 요약 object ("[object Date]") cannot be serialized as JSON. Please only return JSON serializable data types. 오류 발생 NextJS 에서는 getInitialProps, getServerSideProps, getStaticProps 의 리턴 값으로 plain Object만을 허용 특정 (Date, Map, Set) 타입을 퍼포먼스 이슈로 인해 지원하지 않음 해결 방법 JSON.parse(JSON.stringify(객체))사용 safe-json-stringify 라이브러리 사용 (1번이랑..
computer science/에러로그
2022. 11. 22. 20:45