链接需要项目中的构建时间设置``expo config错误

发布于 2025-02-01 10:48:13 字数 744 浏览 3 评论 0原文

我有0个想法为什么会发生这种情况,因为我没有更改Apps app.config.jsapp.json,因为检查了我当前的分支。

不久前,我添加了与我的应用程序的深刻链接,一切都很好。我一直在尝试提交更改,但是Jest一直在丢失错误:

链接需要在项目的Expo Config(app.config.js或app.json)中进行构建时间设置```bare or of Bare or offer或app.json'' 。手动提供“方案”属性可以规避此错误。了解更多信息:https://docs.expo.io/guides/linking/

对我没有意义,因为在app.json中有一个scheme属性。 /code>,我以前对此没有任何问题。

我在gitgub上发现了类似的问题在这里

他们的解决方案涉及手动将方案添加到<<<<代码> createMockConstants.js 文件,但是在看看之后,我已经有了。

我感谢我没有添加任何代码/文件,但是我看不到它们会有什么好处,如我所提到的,我已经拥有scheme属性,并且这些文件都没有更改。

谢谢

I have 0 idea why this is happening because I have not changed anything in my apps app.config.js or app.json since checking out my current branch.

I added deep linking to my app a while ago, and everything has been fine. I have been trying to commit my changes, but Jest keeps throwing the error:

Linking requires a build-time setting `scheme` in the project's Expo config (app.config.js or app.json) for bare or production apps. Manually providing a `scheme` property can circumvent this error. Learn more: https://docs.expo.io/guides/linking/

Which makes no sense to me, as there is a scheme property in the app.json and I have had no problems with this before.

I found a similar issue on GitGub here

Their solution involved manually adding the scheme to the createMockConstants.js file, but after taking a look, I already had this.

I appreciate I have not added any code/files but I don't see what good they would be as I mentioned, I already have the scheme property, and none of these files have changed.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文