在包中找不到模块`EvilIcons`

时间:2018-03-01 17:23:28

标签: reactjs react-native

我使用"react-native-vector-icons": "^4.5.0"并将其导入为 import EvilIcons from 'react-native-vector-icons/EvilIcons'。但是捆绑失败的错误如下所示。

error: bundling failed: Error: While resolving module `react-native-vector-icons/EvilIcons`, the Haste package `react-native-vector-icons` was found. However the module `EvilIcons` could not be found within the package. Indeed, none of these files exist: .....crm/node_modules/react-native/local-cli/core/__fixtures__/files/EvilIcons(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json)` 你有解决这类问题的经验,请帮帮我。谢谢

1 个答案:

答案 0 :(得分:3)

这是一个反应原生问题,请参阅https://github.com/facebook/react-native/issues/17610

将由https://github.com/facebook/react-native/pull/17672

修复 <{3}}

提供了

解决方法