如何在世博会上运行“@apollo/client”

2024-03-25

我有一个裸露的反应本机,然后我将项目转换为expo项目,因为该项目没有与主 React Native 项目一起运行。所以在创建 expo 项目后,我尝试运行该项目,但它给了我这个错误:

While trying to resolve module `@apollo/client` from file `C:\Users\REO\Desktop\food-recipe\App.js`, the package `C:\Users\REO\Desktop\food-recipe\node_modules\@apollo\client\package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`C:\Users\REO\Desktop\food-recipe\node_modules\@apollo\client\main.cjs`. Indeed, none of these files exist:

  * C:\Users\REO\Desktop\food-recipe\node_modules\@apollo\client\main.cjs(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)
  * C:\Users\REO\Desktop\food-recipe\node_modules\@apollo\client\main.cjs\index(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)

我已经尝试按照另一篇堆栈溢出帖子中的建议降级 Apollo 软件包,但似乎没有任何效果。

您可以在此处下载该文件并查看 https://github.com/Reotech/food-recipe


None

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何在世博会上运行“@apollo/client” 的相关文章

随机推荐