【发布时间】:2018-03-25 18:25:56
【问题描述】:
我不确定为什么会收到此错误:
Unable to resolve module `@expo/vector-icons` from `...(directory path here)...` : Module does not exist in the module pack
我尝试了其他论坛/网站上建议的以下内容:
- 清除守望者手表
- 删除 node_modules 文件夹
- 重置打包程序缓存
package.json
{
"name": "app name",
"version": "0.0.0",
"description": "Hello Expo!",
"author": null,
"private": true,
"main": "node_modules/expo/AppEntry.js",
"dependencies": {
"babel-plugin-module-resolver": "^2.5.0",
"babel-preset-expo": "^4.0.0",
"expo": "^21.0.0",
"firebase": "^4.5.1",
"geofire": "^4.1.2",
"moment": "^2.19.1",
"react": "16.0.0-alpha.12",
"react-native": "https://github.com/expo/react-native/archive/sdk-21.0.2.tar.gz",
"react-navigation": "^1.0.0-beta.13"
}
}
还是什么都没有,还是报这个错误
【问题讨论】:
标签: react-native npm expo