React VR" jest-haste-map:@providesModule命名冲突"

时间:2017-04-19 20:47:08

标签: reactjs react-360

我正在使用React VR命令行界面版本0.3.0。我通过包管理器下载了react-vr。当我跑步" npm start"在我的DemoApp文件夹中命令,我收到此错误:

Loading dependency graph...
React packager ready.

jest-haste-map: @providesModule naming collision:
  Duplicate module name: View
  Paths: /Users/akh/DemoApp/node_modules/react-vr/Libraries/Components/View/View.vr.js collides with /Users/akh/DemoApp/node_modules/react-native/Libraries/Components/View/View.js

This warning is caused by a @providesModule declaration with the same name across two different files.
jest-haste-map: @providesModule naming collision:
  Duplicate module name: LayoutPropTypes
  Paths: /Users/akh/DemoApp/node_modules/react-vr/Libraries/StyleSheet/LayoutPropTypes.vr.js collides with /Users/akh/DemoApp/node_modules/react-native/Libraries/StyleSheet/LayoutPropTypes.js

This warning is caused by a @providesModule declaration with the same name across two different files.
jest-haste-map: @providesModule naming collision:
  Duplicate module name: AnimatedImplementation
  Paths: /Users/akh/DemoApp/node_modules/react-vr/Libraries/VRReactOverrides/AnimatedImplementation.vr.js collides with /Users/akh/DemoApp/node_modules/react-native/Libraries/Animated/src/AnimatedImplementation.js

This warning is caused by a @providesModule declaration with the same name across two different files.
jest-haste-map: @providesModule naming collision:
  Duplicate module name: NetworkOverlay
  Paths: /Users/akh/DemoApp/node_modules/react-vr/Libraries/VRReactOverrides/NetworkOverlay.vr.js collides with /Users/akh/DemoApp/node_modules/react-native/Libraries/Inspector/NetworkOverlay.js

这是一个错误吗?

1 个答案:

答案 0 :(得分:1)

尝试卸载然后重新安装" react-native-router-flux"这对我有用。

  

npm rm react-native-router-flux; npm install --save   反应天然路由器通量

回答:https://github.com/aksonov/react-native-router-flux/issues/1803