小编Kri*_*shP的帖子

Expo Firebase 身份验证“尝试从文件解析模块‘idb’时”

这是我的第一个应用程序。我正在尝试使用 Firebase 进行电子邮件/密码身份验证。我按照基本教程https://firebase.google.com/docs/auth/web/password-auth#web-version-9进行操作,但不断收到此错误:

While trying to resolve module `idb` from file '.../node_modules/@firebase/app/dist/esm/index.esm2017.js', the package `/Users/##/##/##/node_modules/idb/package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`/Users/##/##/##/node_modules/idb/build/index.cjs`. 
Run Code Online (Sandbox Code Playgroud)

我已将其添加到metro.config.js:

  resolver: {
    sourceExts: ['jsx', 'js', 'ts', 'tsx', 'cjs'],
  },
Run Code Online (Sandbox Code Playgroud)

问题仍然存在。

firebase firebase-authentication expo

15
推荐指数
2
解决办法
6551
查看次数

标签 统计

expo ×1

firebase ×1

firebase-authentication ×1