如何修复 setGlobalHandler ? (反应本机)

问题描述 投票:0回答:1

我正在设置一个 React Native 项目存储库,但是当我运行 Xcode 模拟器时,

我遇到了“main.jsbundle”文件未定义的问题。

我通过参考下面的链接解决了“无捆绑”问题,但随后出现了另一个问题,即使在搜索后我也无法解决。你能帮我吗?

https://onexlab-io.medium.com/no-bundle-url-present-fixed-ca2688a80f66

我的问题屏幕如下图所示。

enter image description here

Unhandled JS Exception: Cannot read property 'setGlobalHandler' of undefined

TypeError: Cannot read property 'setGlobalHandler' of undefined
    at anonymous ()
    at h (/Users/~/main.jsbundle:2:1789)
    at d (/Users/~/main.jsbundle:2:1250)
    at i (/Users/~/main.jsbundle:2:501)
    at anonymous (/Users/~/main.jsbundle:43:85)
    at h (/Users/~/main.jsbundle:2:1789)
    at d (/Users/~/main.jsbundle:2:1250)
    at i (/Users/~/main.jsbundle:2:501)
    at global (/~/main.jsbundle:800:4)

anonymous
    main.jsbundle:65:142
h
    main.jsbundle:2:1789
d
    main.jsbundle:2:1250
i
    main.jsbundle:2:501
anonymous
    main.jsbundle:43:85
h
    main.jsbundle:2:1789
d
    main.jsbundle:2:1250
i
    main.jsbundle:2:501
global
    main.jsbundle:800:4

typescript xcode react-native bundle
1个回答
0
投票

我也有同样的问题。找到解决办法有运气吗?

© www.soinside.com 2019 - 2024. All rights reserved.