javascript - 为什么我有 index.js:1 未捕获的错误:您提供的错误不包含堆栈跟踪。?
问题描述
我正在练习 reactjs 和 Firebase。每当我单击登录按钮并使用 Google 按钮登录时,我都会在控制台中看到此错误。但是,我仍然可以成功地将其保存在 firebase firestore db 中。我只是这个 reactjs 和 firebase 的新手
Uncaught Error: The error you provided does not contain a stack trace.
at L (index.js:1)
at Y (index.js:1)
at index.js:1
at index.js:1
at o (index.js:1)
onClick 按钮有问题吗?
<Button onClick={signInWithGoogle}>
<Typography variant="h6" align="center" display="block">
Sign In With Google
</Typography>
</Button>
这是 firebase utils 中的 signInWithGoogle:
const GoogleProvider = new firebase.auth.GoogleAuthProvider();
GoogleProvider.setCustomParameters( {prompt: 'select_account' });
export const signInWithGoogle = () =>auth.signInWithPopup(GoogleProvider);
解决方案
推荐阅读
- debugging - 如何在 nodejs 中调试或运行本地 GCP 无服务器应用程序?
- r - 我可以在不使用 aes() 的情况下手动向 ggplot 添加图例吗?
- excel - 如何将数据从一张表复制到另一张表?
- python - Keras 自己的训练程序 vs Keras Fit
- unity3d - Unity3D中UIs渲染顺序的一些问题
- ruby - 为 elsif 获取用户输入的字母
- python - Python 正则表达式模糊搜索
- python - 我需要为每个组条件连接三列中的语句
- python - 无法在 Raspberry Pi 4 上安装 Tensorflow 2.3
- python-3.x - 这是不打印少于四个字符的名称的有效“if”表达式吗