我遇到此错误,我使用Expo运行我的React本地

发布于 2025-01-27 12:16:36 字数 879 浏览 3 评论 0原文

在尝试从文件中解析模块IDB

c:\ users \ users \ chouk \ oneDrive \ bureau \ bureau \ my-app \ node_modules \ @firebase \ @firebase \ app \ app \ dist \ esm \ esm \ index.esm2017.js

,软件包c:\ users \ chouk \ oneedrive \ bureau \ my-app \ node_modules \ idb \ package.json已成功找到。但是,此软件包本身指定无法解决的MAIN模块字段(c:\ users \ chouk \ oneDrive \ bureau \ bureau \ my-app \ my-app \ node_modules \ idb \ idb \ idb build \ Index.cjs.cjs.cjs的确,这些文件都不存在:

  • c:\ users \ chouk \ oneDrive \ bureau \ my-app \ node_modules \ idb \ idb \ build build \ index.cjs(.native | .native | .android.ts |。 antibal.ts | .ts | .android.tsx | .native.tsx | .tsx | .android.js | .native.js | .js | .js | .android.jsx | .native.jsx | .jsx | .jsx | .jsx | .android.json |
  • ​| .json | .native.json | .json)

While trying to resolve module idb from file `

C:\Users\chouk\OneDrive\Bureau\my-app\node_modules\@firebase\app\dist\esm\index.esm2017.js

, the package C:\Users\chouk\OneDrive\Bureau\my-app\node_modules\idb\package.json was successfully found. However, this package itself specifies a main module field that could not be resolved (C:\Users\chouk\OneDrive\Bureau\my-app\node_modules\idb\build\index.cjs. Indeed, none of these files exist:

  • C:\Users\chouk\OneDrive\Bureau\my-app\node_modules\idb\build\index.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\chouk\OneDrive\Bureau\my-app\node_modules\idb\build\index.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)

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

深空失忆 2025-02-03 12:16:36

我通过将firebase依赖项降级到9.7.0(以前是9.8.1)来点击此确切的问题并“修复”了它

。通过编辑firebase依赖项中的条目 package.json的部分为“ 9.7.7.0”

I hit this exact issue and "fixed" it by downgrading the firebase dependency to 9.7.0 (it was previously 9.8.1)

You can do that by editing the firebase entry in the dependencies section of package.json to be "9.7.0"

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文