Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress 💅
40.12k
stars
2.48k
forks
source link
TypeError: __vite_ssr_import_5__.default.div is not a function [fixed] #4275
Open
leo1104 opened 2 months ago
I was getting this weird issue when using React + Vite + Styled-Components + SSR + SWC with @swc/plugin-styled-components
This is how my vite config file looks like:
Solved this by changing the import statement to:
import {styled} from styled-components;