我在我的Reactive原住民应用程序中使用了rn-fetch-blob。我用react-native-blob-util代替了它。我还使用redux-persist-filesystem-storage,它使用rn-fetch-blob。redux-persist-filesystem-storage卸载rn-fetch-blob后开始抛出一个错误(null is not an object (evaluating 'RNFetchBlob.DocumentDir'))。我认为删除node_modules/rn-fetch-blob不会对redux-persist-filesystem-storage产生任何影响,因为redux-persist-filesystem-storage使用node_modules/redux-persist-filesystem-storage/node_modules/rn-fetch-blob。
我的推理正确吗?我误会什么了?
发布于 2022-12-02 05:36:15
也许会发生这种情况,因为有时您的包安装得并不完美。因此,您可以尝试安装rn-fetch-blob,或者再次正确安装redux持久化文件系统存储,因为在新版本中,它们已经将rn-fetch-blob替换为react本机-blob-util。
https://stackoverflow.com/questions/74648125
复制相似问题