react-native取消链接库错误。 '无法读取未定义的属性'查找'

时间:2019-08-01 13:52:04

标签: react-native npm

我正在使用弹出的Android-React Native应用程序,并且试图在该平台上实现火力地堡。因此,我安装了react-native-firebase软件包,它成功链接了iOS,但是链接时出现了一些错误。所以现在我想取消链接库,但是出现了如下错误。

rnpm-install info Unlinking react-native-firebase ios dependency 
rnpm-install ERR! It seems something went wrong while unlinking. Error: Cannot read property 'find' of undefined


Cannot read property 'find' of undefined

TypeError: Cannot read property 'find' of undefined
    at removeFromProjectReferences (/Users/fiyuu/riders-react-native/node_modules/react-native/local-cli/link/ios/removeFromProjectReferences.js:23:47)
    at removeProjectFromProject (/Users/fiyuu/riders-react-native/node_modules/react-native/local-cli/link/ios/removeProjectFromProject.js:26:16)
    at unregisterNativeModule (/Users/fiyuu/riders-react-native/node_modules/react-native/local-cli/link/ios/unregisterNativeModule.js:44:10)
    at Object.unregisterNativeModule [as unregister] (/Users/fiyuu/riders-react-native/node_modules/react-native/local-cli/link/ios/common/unregisterNativeModule.js:19:1)
    at /Users/fiyuu/riders-react-native/node_modules/react-native/local-cli/link/unlink.js:57:12
    at Array.forEach (<anonymous>)
    at unlinkDependency (/Users/fiyuu/riders-react-native/node_modules/react-native/local-cli/link/unlink.js:31:28)
    at tasks (/Users/fiyuu/riders-react-native/node_modules/react-native/local-cli/link/unlink.js:115:1)

我还没有弄清楚库发生了什么。 如果可以帮助解决问题,我可以共享任何清单文件或gradle文件。

谢谢

0 个答案:

没有答案