Hi folks, sorry if it has been asked before but I struggle to find the right resource on Google
When rendering a React component that uses Styled Components, I am hitting errors like this "vite_ssr_import_2.default.div is not a function"
This smells like the package is not imported correctly from server during a server render. I hit the exact same issue with Remix which is also based on Vite. Sadly, the current Remix example doesn't say anything about the Vite setup and focuses on setting up server rendering.
Any idea why this would happen ? Do I need to tweak the Vite config somehow?