无法构建DependencyGraph:@providesModule命名冲突

时间:2016-09-12 07:06:12

标签: node.js react-native

我收到了这个错误:

Failed to build DependencyGraph: @providesModule naming collision:
Duplicate module name: PickerAndroid
Paths: /Users/David/Documents/mobile/node_modules/react-native/Libraries/Utilities/differ/matricesDiffer.js collides with /Users/David/Documents/mobile/node_modules/react-native/Libraries/Utilities/differ/pointsDiffer.js

This error is caused by a @providesModule declaration with the same name accross two different files.
Error: @providesModule naming collision:
Duplicate module name: PickerAndroid
Paths: /Users/David/Documents/mobile/node_modules/react-native/Libraries/Utilities/differ/matricesDiffer.js collides with /Users/David/Documents/mobile/node_modules/react-native/Libraries/Utilities/differ/pointsDiffer.js

This error is caused by a @providesModule declaration with the same name accross two different files.
at HasteMap._updateHasteMap (/Users/David/Documents/mobile/node_modules/node-haste/lib/DependencyGraph/HasteMap.js:162:15)
at /Users/David/Documents/mobile/node_modules/node-haste/lib/DependencyGraph/HasteMap.js:127:25

我试过rm -rf node_modules&& npm install,watchman watch-del-all,react-native start - --reset-all ...没有帮助

0 个答案:

没有答案