【问题标题】:Uncaught TypeError: Cannot read property 'injection' of undefined [closed]未捕获的类型错误:无法读取未定义的属性“注入”[关闭]
【发布时间】:2018-09-10 05:38:47
【问题描述】:

将 react 升级到 16.x 后出现以下错误

Uncaught TypeError: Cannot read property 'injection' of undefined
    at injectTapEventPlugin (injectTapEventPlugin.js:23)
    at eval (index.js:53)
    at Object.<anonymous> (bundle.js:1363)
    at __webpack_require__ (bundle.js:556)
    at fn (bundle.js:87)
    at eval (multi_main:3)
    at Object.<anonymous> (bundle.js:589)
    at __webpack_require__ (bundle.js:556)
    at bundle.js:579
    at bundle.js:582

请帮忙!!!

react 版本 --> "^16.4.2" react-tap-event-plugin --> "^3.0.3"

【问题讨论】:

  • 你应该使用obk?.injection

标签: javascript reactjs material-ui react-16


【解决方案1】:

在 React 16.4.0 之后我们不能使用 react-tap-event-plugin

https://github.com/zilverline/react-tap-event-plugin/issues/121

【讨论】:

    猜你喜欢
    • 2021-09-24
    • 2015-04-23
    • 2020-11-17
    • 1970-01-01
    • 1970-01-01
    • 2021-12-22
    • 1970-01-01
    • 2015-01-06
    • 2017-07-26
    相关资源
    最近更新 更多