react-native-vector-icons模块/ MaterialIcons中的React-native错误

时间:2018-01-30 12:10:22

标签: react-native

当我尝试运行应用 react-native-vector-icons 模块时会出现以下错误。

    Error: While resolving module `react-native-vector-icons/MaterialIcons`, 
the Haste package `react-native-vector-icons` was found.

当我卸载包时,我的项目工作正常。

1 个答案:

答案 0 :(得分:1)

  1. 运行此命令:

    rm ./node_modules/react-native/local-cli/core/fixtures/files/package.json

  2. 并重启打包器