运行弹出的项目会抛出“Expo sdk required expo to run"; [英] Running ejected project throws "Expo sdk required expo to run"

查看:14
本文介绍了运行弹出的项目会抛出“Expo sdk required expo to run";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 create-react-native-app 创建了 react-native 项目.在此我从 expo 导入 Permissions 模块,

I created react-native project using create-react-native-app. In this I am importing Permissions module from expo,

import {Permissions} from "expo"; 

后来我意识到 expo 并不能满足我的所有要求(比如社交分享等),所以我决定退出 expo 项目.我运行了以下命令来这样做

Later I realised that expo doesn't fullfill all my requirements (like social sharing etc), so I decided to eject the expo project. I ran following command to do so

"npm run eject"

分离后,我安装了 expo 作为我的项目依赖项,以解析从 expo 导入的权限模块.

After detaching, I installed expo as my project dependency to resolve imported Permissions module from expo.

"npm install expo" 

现在,当我运行npm run ios"时,我的 ios 模拟器中出现了这个大错误.

Now when I run "npm run ios", I get this big error in my ios simulator.

感谢这里的领导.

谢谢!

推荐答案

一旦你弹出你现在正在使用 ExpoKit &不再使用 Expo sdk.文档可以在 这里这里 &这里.

Once you eject you're now using ExpoKit & no longer using the Expo sdk. The docs can be found here, here & here.

这篇关于运行弹出的项目会抛出“Expo sdk required expo to run";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆