Vue.js Vue本机安装失败,使用Vue本机CLI
已创建Vue.js Vue本机安装失败,使用Vue本机CLI,vue.js,vue-native,Vue.js,Vue Native,已创建helloworld项目请参阅 但是有如下错误,我的第一个应用程序没有启动 Unable to resolve "../../App" from "node_modules/expo/AppEntry.js" 我的环境 $ node -v v9.9.0 $ npm -v 6.4.1 $ npm list --depth=0 empty-project-template@ /Users/kamo/repo/github.com/kamontia/vue- native-app/hell
helloworld
项目请参阅
但是有如下错误,我的第一个应用程序没有启动
Unable to resolve "../../App" from "node_modules/expo/AppEntry.js"
我的环境
$ node -v
v9.9.0
$ npm -v
6.4.1
$ npm list --depth=0
empty-project-template@ /Users/kamo/repo/github.com/kamontia/vue-
native-app/helloworld
├── babel-preset-expo@5.0.0
├── expo@31.0.4
├── react@16.5.0
├── react-native@0.57.1
├── vue-native-core@0.0.8
├── vue-native-helper@0.0.9
└── vue-native-scripts@0.0.14
npm ERR! peer dep missing: react@16.0.0-alpha.6, required by react-
native-reanimated@1.0.0-alpha.10
npm ERR! peer dep missing: react-native@^0.44.1, required by react-
native-reanimated@1.0.0-alpha.10
在模拟器上
Unable to resolve module ../../App from
xxx/node_modules/expo/AppEntery.js: The ./../App could not be found
from ...
Indeed, none of these files exist:
* ... App(.native||.ios.js|...
我该怎么办
我还尝试使用React Native refer创建项目,并成功启动了应用程序。也遇到了同样的问题。下面是我的作品 在app.json中添加
"sourceExts": [ "js", "json", "ts", "tsx", "jsx", "vue"]
Inside
"packagerOpts"
"packagerOpts":
{ "sourceExts": [ "js", "json", "ts", "tsx", "jsx", "vue"],
"config": "metro.config.js" }
发件人:
这对我有用你能弄明白吗?我现在有这个问题,它让我发疯。非常感谢。!它就像一个符咒。这很奇怪,为什么vue native的核心开发人员没有从盒子中添加它。