无法解析模块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
相关产品推荐
相关产品推荐

