Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

styled components error in nextjs

//update in new version of next.js
// at next.config.js add styledComponents:true in compiler
 @type {import('next').NextConfig}
const nextConfig = {
  /* config options here */
  reactStrictMode:true,
  compiler:{
    styledComponents:true,
  }
}

export default nextConfig
 
PREVIOUS NEXT
Tagged: #styled #components #error #nextjs
ADD COMMENT
Topic
Name
8+9 =