RN关于Windows电脑上创建 移植到Mac 和 react-native-vector-icons报错
2021-02-16 20:19
2 error: bundling failed: Error: While resolving module `react-native-vector-icons/MaterialIcons`, the Haste package `react-native-vector-icons` was found. However the module `MaterialIcons` could not be found within the package. Indeed, none of these files exist:
* `/Users/user/my-app/node_modules/react-native/local-cli/core/__fixtures__/files/MaterialIcons(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json)`
* `/Users/user/my-app/node_modules/react-native/local-cli/core/__fixtures__/files/MaterialIcons/index(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json)`1 进入项目更新npm 正如jerry指出的那样,这是NPM中的一个错误。现在有一个修复程序可用。您可以使用更新NPM
npm i -g npm
。删除了React Native,npm remove --save react-native
并重新安装了RN npm i --save react-native
第一步
上一篇:C#和WCF通信
文章标题:RN关于Windows电脑上创建 移植到Mac 和 react-native-vector-icons报错
文章链接:http://soscw.com/index.php/essay/56255.html