繁体   English   中英

TypeError: undefined is not an object(评估“ReactCurrentActQueue$1.isBatchingLegacy”)

[英]TypeError: undefined is not an object (evaluating 'ReactCurrentActQueue$1.isBatchingLegacy')

捆绑包./index.js

LOG Running "MyApp" with {"rootTag":1} ERROR TypeError: undefined is not an object (evalating 'ReactCurrentActQueue$1.isBatchingLegacy')

  1. 如果您使用的是 expo,请使用旧版本的 react-native(0.65)
  2. 创建一个新项目并将您的代码移到那里。

请参考这个线程, https://github.com/facebook/react-native/issues/34079

Raj 的回答有所帮助。 我将 react-native 降级到 0.68.2 版。 摆脱了所有 node_modules。 清除 npm 缓存。 这对我有用

您需要在 packages.json 中同步更新您的“react”依赖版本

例如:

“反应”:“18.0.0”,
“反应原生”:“0.69.3”,

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM