Decisiv / styled-components-modifiers

A library to enable BEM flavored modifiers (and responsive modifiers) in styled components.
MIT License
297 stars 11 forks source link

Styled-components 5 compatibility #68

Open garyee opened 2 years ago

garyee commented 2 years ago

EXPECTED BEHAVIOR

I have been using this library with SC 5 for a while and had no problems, which lead me to belief that it is compatible with SC 5. Today I had to delete my node_modules folder and when I wanted to "npm install", I got a conflict telling me that styled-components-modifiers requires SC 2 to 4.

I must add that I previously had npm version 6 and updated to 8. In version 6 the peer dependencies where ignored, which in version 8 they are not (be default, but there is a flag)

SUGGESTED SOLUTION

Could you please update the peer dependencies in the package.json.