我前段时间通过npm安装了react-native-element。今天早上,我试图从包中创建一个覆盖组件,但由于某种原因,我一直收到一个错误,即不存在这样的组件。所以,愚蠢的是,我再次运行了npm install react-native-elements,现在每次我尝试构建时都会得到以下错误:
Unable to resolve ./social/SocialIcon" from "./C:\\Users\\L\\IdeaProjects\\FinalProject\\node_modules\\react-native-elements\\src\\index.js:找不到模块./social/SocialIcon“`。
我已经安装了react-native-vector-icons。我不知道为什么会发生这种事。
发布于 2018-04-17 23:45:03
尝试安装@expo/vector-icons
npm install @expo/vector-icons --save
https://github.com/react-native-training/react-native-elements/issues/620
https://stackoverflow.com/questions/49880883
复制相似问题