我遇到此错误,我使用Expo运行我的React本地
在尝试从文件中解析模块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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过将
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 to9.7.0
(it was previously9.8.1
)You can do that by editing the
firebase
entry in thedependencies
section ofpackage.json
to be"9.7.0"