2

我正在使用 React VR 命令行界面版本 0.3.0。我通过包管理器下载了 react-vr。当我在 DemoApp 文件夹中运行“npm start”命令时,出现以下错误:

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

这是一个错误吗?

4

1 回答 1

1

Try uninstalling then reinstalling "react-native-router-flux" which worked for me.

npm rm react-native-router-flux; npm install --save react-native-router-flux

This was answered: https://github.com/aksonov/react-native-router-flux/issues/1803

于 2017-11-07T16:53:00.640 回答