일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- NeXT
- nestjs
- 브루트포스
- NextImageSpan
- componentDidUpdate
- 판교브루클린
- 매크로태스크큐
- getServerSideProps
- resource server
- 마이크로태스크큐
- getInitialProps
- 이벤트루프
- 리팩터링2판
- resource owner
- 자바스크립트엔진
- 자바스크립트런타임
- 개발도서추천
- flexible box
- NextImage
- CSS
- prevProps
- 콜스택
- nextjs
- 브라우저동작원리
- backend
- access token
- BOJ
- 브라우저동작
- react
- Next이미지
- Today
- Total
목록nextjs (2)
imgyuzzzang
next 13부터는 완전 해결되어 img 태그만 추가되지만 아직 안 쓰고 있으니^^ 스킵 Next 버전따라 해결방법 다름! 버전 확인 또는 맞춰서 사용할 것 v 12.1.1 ~ 12.2.0 // next.config.js module.exports = { experimental: { images: { layoutRaw: true } }, // Rest of the config }; v 12.2.x // next.config.js module.exports = { experimental: { images: { allowFutureImage: true } }, // Rest of the config };import Image from 'next/future/image' v 12.3 부터는 im..
츨처: 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번이랑..