Uncaught TypeError: _react2.default.createContext is not a function
Environment
| Tech | Version |
|---|---|
| material-ui-pickers | 1.0.0-rc.9 |
| material-ui | 1.0.0-beta.47 |
| React | 16.2.0 |
| Browser | Chrome |
| Platform |
Steps to reproduce
- Install package
- Import MuiPickersUtilsProvider
Actual behavior
Heres the stack trace
Uncaught TypeError: _react2.default.createContext is not a function at eval (MuiPickersUtilsProvider.js?a618:38) at Object../node_modules/material-ui-pickers/utils/MuiPickersUtilsProvider.js (index.bundle.js:1) at s (index.bundle.js:1) at t (index.bundle.js:1) at eval (index.js?1fdf:24) at Object../src/index.js (index.bundle.js:1) at s (index.bundle.js:1) at t (index.bundle.js:1) at Object.0 (index.bundle.js:1) at s (index.bundle.js:1)
You need React >= 16.3.3
I'm getting the same, with react 16.4.0 material-ui-pickers: 1.0.0-rc.9 @ material-ui/core: 1.1.0
Thanks!
👍