当我回到不使用CometChat的git版本(并基于旧的package.json重置节点模块)时,所有错误都消失了。
警告消息1:
warn Package @cometchat-pro/react-native-chat has been ignored because it contains invalid configuration. Reason: Cannot find module ‘@cometchat-pro/react-native-chat/package.json’
当我尝试初始化CometChat时相应的错误消息:
Unable to resolve “@cometchat-pro/react-native-chat” from “App.js” Failed building JavaScript bundle.
@ cometchat-pro / react-native-chat没有显示在节点模块中。
这真的很奇怪,因为我只是使用以下方法安装的:
npm install @cometchat-pro/react-native-chat@2.0.8 --save
它也显示在package.json中,如下所示:
“@cometchat-pro/react-native-chat”: “^2.0.8”,
有什么想法为什么会发生或如何解决?