javascript - 未捕获的类型错误:无法读取未定义的属性“注入”
问题描述
升级到 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
请帮忙!!!
反应版本 --> "^16.4.2"
react-tap-event-plugin -->"^3.0.3"
解决方案
在 React 16.4.0 之后我们不能使用 react-tap-event-plugin
https://github.com/zilverline/react-tap-event-plugin/issues/121
推荐阅读
- r - 如何在 R 中使用我的标准创建代码
- python-3.x - 我正在构建一个 Python 项目。但是他们在安装一个包时出错
- reactjs - 如何使用 useStates(打字稿)将新输入推送到数组中
- node.js - Sharp 正在工作,但发出警告消息:jpegsave_buffer: no property named 'subsample_mode'
- laravel - 在 Laravel API 中调用模型 [App\\Models\\User] 上的未定义关系 [部门]
- python - 将索引值(来自多索引)设置为列
- postgresql - 如何将 Postgis 添加到正在运行的 Postgresql 容器中
- flutter - 在 Flutter Firestore 中的 DocumentSnapshotPlatform 中不存在错误状态字段
- authentication - 有没有办法通过 kafka 代理上的环境变量设置 sasl.enabled.mechanisms?
- asp.net-mvc - 用户从应用程序中随机注销(实施 2FA 后)