You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

无法解析模块firebase/auth/react-native,回滚react-native版本仍报错

问题:更新React Native后无法解析firebase/auth/react-native模块

问题详情

  • 将React Native依赖更新至react-native@0.71.8后,出现无法解析模块firebase/auth/react-native的错误。
  • 已尝试的修复操作:修改package.json将React Native版本回滚至0.71.0,删除node_modules文件夹,执行npm cache clean --force后重新安装依赖,但错误仍然存在。
  • 错误提示内容:Error: Unable to resolve module firebase/auth/react-native from [项目文件路径]: firebase/auth/react-native could not be found within the project or in these directories: node_modules

当前依赖配置

"dependencies": {
  "@react-native-firebase/app": "^18.3.0",
  "expo": "^48.0.7",
  "expo-constants": "~14.2.1",
  "expo-linking": "~4.0.1",
  "expo-router": "^1.2.0",
  "expo-splash-screen": "~0.18.1",
  "expo-status-bar": "~1.4.2",
  "react": "18.2.0",
  "react-dom": "18.2.0",
  "react-native": "0.71.0",
  "react-native-gesture-handler": "~2.9.0",
  "react-native-reanimated": "~2.14.4",
  "react-native-safe-area-context": "4.5.0",
  "react-native-screens": "~3.20.0",
  "react-native-web": "~0.18.7",
  "remixicon": "^3.4.0"
}

内容的提问来源于stack exchange,提问作者David Henry

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.15 01:03:29