gpt4 book ai didi

ios - react-native auth0 缺少 NativeModule

转载 作者:行者123 更新时间:2023-11-29 11:30:36 24 4
gpt4 key购买 nike

我目前正在开发一个包含用于登录目的的 Auth0 的 native react 项目。当我尝试配置包时,它给了我这个错误:

Error: Missing NativeModule. Please make sure you run `react-native link react-native-auth0`
at Agent.newTransaction (agent.js:33)
at WebAuth.authorize (index.js:55)
at App (App.js:23)
at instantiate (createClassProxy.js:94)
at new App (eval at proxyClass (createClassProxy.js:112), <anonymous>:4:17)
at constructClassInstance (ReactNativeRenderer-dev.js:8871)
at updateClassComponent (ReactNativeRenderer-dev.js:11400)
at beginWork (ReactNativeRenderer-dev.js:12588)
at performUnitOfWork (ReactNativeRenderer-dev.js:15852)
at workLoop (ReactNativeRenderer-dev.js:15892)

我以为是链接模块的错误,所以我手动做了,但没有任何变化。

最佳答案

大概,我迟到了。但张贴它以供将来引用。 React Native CLI 提供了自动链接功能,它取代了命令 react-native link

对于IOS,直接运行

cd ios && pod install && cd .. 

https://github.com/react-native-community/cli/blob/master/docs/autolinking.md#autolinking

关于ios - react-native auth0 缺少 NativeModule,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54021468/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com