我在运行./gradlew assembleRelease
时遇到此问题
Error: jest-haste-map: Haste module naming collision: Duplicate module name:
react-native Paths:
/node_modules/react-native/package.json collides with
/node_modules/react-native-twitter-signin/node_modules/react-native/package.json
./gradlew assembleDebug
运行得很好。
对如何解决这个问题有什么想法吗?我花了大约4个小时阅读github线程,但似乎没有一个选项有效……
发布于 2018-12-13 03:18:30
使用master
分支中的代码安装包。npm install --save GoldenOwlAsia/react-native-twitter-signin#master
因为修复程序已经添加到master
,但还没有发布到npm
。
该问题是由于package.json
中的重复依赖项造成的
"dependencies": {
"react": "^16.4.2",
"react-native": "^0.56.0"
},
https://stackoverflow.com/questions/53749643
复制相似问题