styled-components / babel-plugin-styled-components

Improve the debugging experience and add server-side rendering support to styled-components
MIT License
1.07k stars 139 forks source link

Compatibility with Million.js #397

Open BlueTree242 opened 1 year ago

BlueTree242 commented 1 year ago

When using css prop from this, and https://million.dev/docs causes many problems, first they render as <undefined> and second there are loads of console errors, one for each component using css=

image

Removing this plugin fixes the problem but of course css is not applied so this doesn't help for me.

This is my website without million, and with million on the top container only (everything else renders fine)

https://github.com/BlueTree242/BlueTree242/tree/website https://github.com/BlueTree242/BlueTree242/tree/website-million

BlueTree242 commented 1 year ago

I think the error comes from million.js but i think this plugin changed something causing it to error