【发布时间】:2019-11-16 03:41:58
【问题描述】:
我按照 git 说明安装了包“react-native-firebase/storage”(npm install @react-native-firebase/storage --save)
然后我用“import rnFb from '@react-native-firebase/storage'”导入包;
但是它给了我错误“@react-native-firebase/app/lib.common does not exist in the Haste module map”
我尝试了错误消息中给出的说明..但无济于事
1. Clear watchman watches: `watchman watch-del-all`.
2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.
3. Reset Metro Bundler cache: `rm -rf /tmp/metro-bundler-cache-*` or `npm start -- --reset-cache`.
4. Remove haste cache: `rm -rf /tmp/haste-map-react-native-packager-*`.
有人可以帮忙吗? 谢谢
更新 11/20 @react-native-firebase/storage 文件夹在 node_modules 文件夹中......但是“app”文件夹不是(这似乎是错误所抱怨的)
【问题讨论】:
标签: react-native react-native-firebase