我今天遇到了一个奇怪的错误:Unable to resolve module `@expo/vector-icons/FontAwesome` from `node_modules/react-native-elements/src/checkbox/CheckBoxIcon.js`: @expo/vector-icons/FontAwesome could not be found within the project.
此项目不使用expo,它是使用vanilla React Native CLI构建的。我在node_modules中检查了CheckBoxIcon.js文件,但没有看到任何对@expo的引用。我不确定这是否重要,但在此之前我正在做一个xpo项目,但这应该不会影响我正在做的这个单独的项目,对吗?
我不确定如何解决这个问题,我已经尝试过清除守望者监视,删除node_modules并重置metro的缓存。
发布于 2021-03-09 01:41:57
npm start --reset-cache不工作,但npm start -- --reset-cache解决了我的问题。
https://stackoverflow.com/questions/66503037
复制相似问题