尝试从@ material-ui / core导入组件时出现以下错误:
FormControlContext.js?f516:15 Uncaught TypeError: _react.default.createContext is not a function
at eval (FormControlContext.js?f516:15)
at Object../node_modules/@material-ui/core/FormControl/FormControlContext.js (main-e0a237440313c16428eb.js:6062)
at __webpack_require__ (main-e0a237440313c16428eb.js:725)
at fn (main-e0a237440313c16428eb.js:102)
at eval (InputBase.js?f12e:38)
at Object../node_modules/@material-ui/core/InputBase/InputBase.js (main-e0a237440313c16428eb.js:6230)
at __webpack_require__ (main-e0a237440313c16428eb.js:725)
at fn (main-e0a237440313c16428eb.js:102)
at eval (index.js?26dc:15)
at Object../node_modules/@material-ui/core/InputBase/index.js
我已经尝试过(建议:here):
有什么想法可以解决吗?