728x90 prop `classname` did not match. with styled-components1 prop `classname` did not match. with styled-components prop `classname` did not match. with styled-components 에러 해결 방법 Nextjs의 next.config를 수정해준다. /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: false, compiler: { styledComponents: true, // 컴파일러 옵션 추가 }, }; module.exports = nextConfig; 2023. 5. 1. 이전 1 다음 728x90