schiehll / react-alert

alerts for React
MIT License
607 stars 99 forks source link

React.createContext is not a function! #86

Closed mr-bat closed 6 years ago

mr-bat commented 6 years ago

I just installed the module but looks like it's incompatible with the latest version of react.

image
schiehll commented 6 years ago

Hey @mr-bat,

I'm pretty sure it's compatible with the latest version of react, you can check it here (check the dependencies). Also, the createContext api was introduced in v16.3 so updating react to v16.4 would not break it this way.

Maybe you are not using the latest version of react, are you sure you are? This error is supposed to happen if you are using react with a version < 16.3.0.

Hope it helps.