使用@ material-ui / core时,_react.default.createContext不是函数

时间:2019-04-18 21:36:45

标签: reactjs material-ui

尝试从@ 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):

  • npm更新react react-dom

有什么想法可以解决吗?

0 个答案:

没有答案