Uncaught TypeError: _react2.default.createContext is not a function

Posted begin256

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Uncaught TypeError: _react2.default.createContext is not a function相关的知识,希望对你有一定的参考价值。

question is caused by react version, update your react version, it will be ok.
use "npm update react" and ""npm update react-dom""


//before:
"react": "^16.2.0",
"react-dom": "^16.2.0",


//after update:
"react": "^16.6.3",
"react-dom": "^16.6.3",

以上是关于Uncaught TypeError: _react2.default.createContext is not a function的主要内容,如果未能解决你的问题,请参考以下文章

Uncaught TypeError: _react2.default.createContext is not a function

Vue.js 在组件中使用本地 javascript 文件函数:Uncaught TypeError: __WEBPACK_IMPORTED_MODULE_0__.writeSomething is

Uncaught TypeError: (0 , _reactRouter.withRouter) 在 react-router 2.4.0 中以编程方式导航路由时不是一个函数

Uncaught TypeError: Cannot set properties of undefined (setting ‘XXX‘) 报错

Uncaught TypeError: renderer.incDisplayOrder is not a function

Uncaught TypeError: renderer.incDisplayOrder is not a function