react-native - 错误 : Naming collision detected

标签 react-native

当我使用此命令启动开发服务器时:

react native 开始

然后我收到错误:

构建依赖关系图时出错:

错误:检测到命名冲突:/home/awesomepankaj/Work/lifemakerProjects/workingLifemaker/LifeMaker/node_modules/react-native/node_modules/react-tools/src/shared/vendor/core/dom/focusNode.js 与
/home/awesomepankaj/Work/lifemakerProjects/workingLifemaker/LifeMaker/node_modules/react-native-modalbox/node_modules/react-native/node_modules/react-tools/src/shared/vendor/core/dom/focusNode.js

react 原生版本 0.13

Ubuntu 14.04

最佳答案

如果你被困在这里。

这是目前的快速修复。

你可以删除你react-native来自 node_module/react-native-router/node_module/react-native 的文件夹

相反,您可以使用 react-native来自 node_module/react-native .

关于react-native - 错误 : Naming collision detected,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33275700/

相关文章:

android - react native 任务 :app:bundleReleaseJsAndAssets FAILED

react-native - React Navigation 缓存组件

ios - 名称中的 React native 图像变量不起作用

android - react-native run-android build 在没有红屏的情况下启动时崩溃

android - React Native 隐藏底部导航

javascript - 如何在使用 React-Navigation 和 Expo 的同时实现一次字体?

android - 摇动手势不适用于具有 native react 的物理设备

javascript - React-Native:Native-base:失败的 Prop 类型:提供给 "NativeBase"的 props.style key "View"无效

javascript - 在 React Native 移动应用程序中存储用户凭据的位置

javascript - 如何根据React Native中的位置获取数据