检测到错误名称冲突

时间:2016-03-14 19:40:19

标签: react-native

运行“react-native start”时出现此错误。

[1:00:56 AM] <END>   Building (deprecated) Asset Map (504ms)
Failed to build DependencyGraph: Naming collision detected: C:\La
testSMFApp\TestApp\node_modules\react-native-list-popover\node_modules\react-
native\Libraries\ART\ARTSerializablePath.js collides with C:\Late
stSMFApp\TestApp\node_modules\react-native\Libraries\ART\ARTSerializablePath.
js
Error: Naming collision detected: C:\MyApp\TestApp\node
_modules\react-native-list-popover\node_modules\react-native\Libraries\ART\ARTSe
rializablePath.js collides with C:\MyApp\TestApp\node_m
odules\react-native\Libraries\ART\ARTSerializablePath.js
    at HasteMap._updateHasteMap (HasteMap.js:132:13)
    at HasteMap.js:103:28
    at tryCallOne (C:\MyApp\TestApp\node_modules\promis
e\lib\core.js:37:12)
    at C:\MyApp\TestApp\node_modules\promise\lib\core.j
s:123:15
    at flush (C:\MyApp\TestApp\node_modules\asap\raw.js
:50:29)
    at nextTickCallbackWith0Args (node.js:452:9)
    at process._tickCallback (node.js:381:13)

我已尝试清除node_modules文件夹并重新创建它。我该如何解决这个问题?

节点版本:5.5.0 react-native版本:0.21.0(也尝试0.20.0,不工作)

1 个答案:

答案 0 :(得分:2)

错误显示节点模块中存在冲突。弹出模块本身包括本机反应。如果您在弹出窗口下删除react native文件夹,那么它将起作用。