链接需要项目中的构建时间设置``expo config错误
我有0个想法为什么会发生这种情况,因为我没有更改Apps app.config.js
或app.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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论