FormidableLabs / radium

A toolchain for React component styling.
http://formidable.com/open-source/radium/
MIT License
7.39k stars 308 forks source link

TypeError: Cannot read property 'styleKeeperContext' of undefined #1042

Open HecCodes opened 4 years ago

HecCodes commented 4 years ago

I read that Radium used the old context API? Does that mean Radium doesn't work anymore? What is another alternative? This is not the full script


import Radium from 'radium'

const style = {
      ':hover':{
        backgroundColor: 'lightgreen',
        color:'black'
      }
}
export default Radium(App);
Priyanka24-dev commented 4 years ago

install radium@0.25.2 and try again....

sators commented 4 years ago

This has resurfaced in radium@0.26.0.

animeshk-me commented 4 years ago

can you explain how to uninstall radium@0.26.0 and install radium@25.2?

sators commented 4 years ago

I just changed my package.json entry for radium to be for version "0.25.2" and run npm install again... You could also try just running npm install radium@0.25.2