【发布时间】:2019-05-29 23:51:35
【问题描述】:
我目前正在开发一个包含用于登录目的的 Auth0 的 react native 项目。 当我尝试配置包时,它给了我这个错误:
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)
我以为是链接模块出错,所以我手动做了,但没有任何变化。
【问题讨论】:
-
你又跑了吗?
-
显然我做到了
-
尝试删除 node_modules 文件夹并再次运行
npm install。
标签: ios react-native react-native-ios auth0