首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >React VR "jest-haste-map:@providesModule命名冲突“

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

Stack Overflow用户
提问于 2017-04-20 04:47:08
回答 1查看 600关注 0票数 2

我使用的是React VR命令行界面0.3.0版。我通过包管理器下载了react-vr。当我在我的DemoApp文件夹中运行"npm start“命令时,我得到了这个错误:

代码语言:javascript
复制
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

这是一个bug吗?

EN

回答 1

Stack Overflow用户

发布于 2017-11-08 00:53:01

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

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

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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43505747

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档