“未找到原生的 ExpoFirebaseCore 模块,请确保 expo-firebase-core 模块已正确链接。”

huangapple go评论72阅读模式
英文:

No native ExpoFirebaseCore module found, are you sure the expo-firebase-core module is linked properly?

问题

由于我正在使用包**"expo-firebase-recaptcha": "^2.3.1"**,每次我使用expo start运行应用程序时,我都会收到以下警告:

警告 未找到本机的ExpoFirebaseCore模块,请确保expo-firebase-core模块已正确链接?
在RootRouteNodeProvider (http://192.168.1.19:19000/index.ts.bundle//&platform=android&dev=true&hot=false:111237:23)
在ContextNavigator (http://192.168.1.19:19000/index.ts.bundle//&platform=android&dev=true&hot=false:116052:24)
在RNCSafeAreaProvider
在SafeAreaProvider (http://192.168.1.19:19000/index.ts.bundle//&platform=android&dev=true&hot=false:105019:24)
在RNGestureHandlerRootView
在GestureHandlerRootView
在GestureHandler
在ExpoRoot (http://192.168.1.19:19000/index.ts.bundle// &platform=android&dev=true&hot=false:116039:24)
在App
在withDevTools(App) (http://192.168.1.19:19000/index.ts.bundle//&platform=android&dev=true&hot=false:127358:27)
在ErrorToastContainer (http://192.168.1.19:19000/index.ts.bundle//&platform=android&dev=true&hot=false:127282:24)
在ErrorOverlay
在RCTView
在View (http://192.168.1.19:19000/index.ts.bundle//&platform=android&dev=true&hot=false:48534:43)
在RCTView
在View (http://192.168.1.19:19000/index.ts.bundle//&platform=android&dev=true&hot=false:48534:43)
在AppContainer (http://192.168.1.19:19000/index.ts.bundle//&platform=android&dev=true&hot=false:48411:36)
在main(RootComponent) (http://192.168.1.19:19000/index.ts.bundle//&platform=android&dev=true&hot=false:84925:28) LOG
onAuthStateChanged: false

我看到很多人也遇到了这个问题,但没有任何解决方案对我们有帮助。我正在使用Expo SDK 48。
而且,我已经安装了这些包:

"expo-firebase-core": "^6.0.0",
"expo-modules-core": "^1.2.7",
英文:

Since that I'm using the package "expo-firebase-recaptcha": "^2.3.1", everytime I run the application with expo start, I receive this warning :

> WARN No native ExpoFirebaseCore module found, are you sure the
> expo-firebase-core module is linked properly?
> at RootRouteNodeProvider (http://192.168.1.19:19000/inde x.ts.bundle//&platform=android&dev=true&hot=false:111237:23)
> at ContextNavigator (http://192.168.1.19:19000/index.ts. bundle//&platform=android&dev=true&hot=false:116052:24)
> at RNCSafeAreaProvider
> at SafeAreaProvider (http://192.168.1.19:19000/index.ts. bundle//&platform=android&dev=true&hot=false:105019:24)
> at RNGestureHandlerRootView
> at GestureHandlerRootView
> at GestureHandler
> at ExpoRoot (http://192.168.1.19:19000/index.ts.bundle// &platform=android&dev=true&hot=false:116039:24)
> at App
> at withDevTools(App) (http://192.168.1.19:19000/index.ts .bundle//&platform=android&dev=true&hot=false:127358:27)
> at ErrorToastContainer (http://192.168.1.19:19000/index. ts.bundle//&platform=android&dev=true&hot=false:127282:24)
> at ErrorOverlay
> at RCTView
> at View (http://192.168.1.19:19000/index.ts.bundle//&pla tform=android&dev=true&hot=false:48534:43)
> at RCTView
> at View (http://192.168.1.19:19000/index.ts.bundle//&pla tform=android&dev=true&hot=false:48534:43)
> at AppContainer (http://192.168.1.19:19000/index.ts.bund le//&platform=android&dev=true&hot=false:48411:36)
> at main(RootComponent) (http://192.168.1.19:19000/index. ts.bundle//&platform=android&dev=true&hot=false:84925:28) LOG
> onAuthStateChanged: false

I've seen that many people encounter this issue too, but none of the solution helped any of us. I'm using Expo SDK 48.
And yet, I've installed those packages :

> "expo-firebase-core": "^6.0.0",
> "expo-modules-core": "^1.2.7",

答案1

得分: 2

expo-firebase-recaptcha 在内部依赖于 expo-firebase-core,由于在 Expo SDK 48 中这两个库都已被弃用,因此原生模块已从 Expo GO 客户端中移除。

你可以迁移到 React Native Firebase 来访问支持的版本。

英文:

expo-firebase-recaptcha rely internally on expo-firebase-core, and since both libraries are deprectaed in Expo SDK 48, the native modules have been removed from the Expo GO client.

You can migrate to React Native Firebase to access the supported version.

huangapple
  • 本文由 发表于 2023年6月27日 20:26:30
  • 转载请务必保留本文链接:https://go.coder-hub.com/76564845.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定