-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
初始化 React Native 模板后,运行白页TypeError: undefined is not an object (evaluating 'this.__callReactNativeMicrotasks #11760
Comments
最新版本的 @babel/[email protected] 导致。 解决方案: 在 package.json 中锁定 @babel/traverse 版本 {
"resolutions": {
"@babel/traverse": "7.17.9"
}
} 解决方案2(推荐): 在 package.json 中锁定 babel-plugin-minify-dead-code-elimination 版本 {
"resolutions": {
"babel-plugin-minify-dead-code-elimination": "0.5.2"
}
} 记得清一下编译缓存
|
问题原因 |
麻烦问下,我现在用Taro 3.4.12,初始化 React Native 模板后,运行白页 还是会有TypeError: undefined is not an object (evaluating 'this.__callReactNativeMicrotasks这个问题。 |
这是配置文件: |
|
相关平台
React Native
使用框架: React
复现步骤
期望结果
正常运行
实际结果
D:\shouji\mya\node_modules\react-native\Libraries\Core\ExceptionsManager.js:149 TypeError: Cannot read property '__callReactNativeMicrotasks' of undefined
环境信息
The text was updated successfully, but these errors were encountered: