[英]I already installed firebase and the error remains
src\firebaseConnection.js Line 17:17: 'initializeApp' is not defined no-undef src\firebaseConnection.js 第 17:17 行:“initializeApp”未定义 no-undef
Search for the keywords to learn more about each error.搜索关键字以了解有关每个错误的更多信息。
webpack compiled with 1 error and 1 warning enter image description here webpack 编译时出现 1 个错误和 1 个警告在此处输入图像描述
You should import like this:你应该像这样导入:
import { initializeApp } from "firebase/app";
const firebaseConfig = {...};
const app = initializeApp(firebaseConfig);
You may want to visit this documentation and learn how to use Firebase Services such as Firestore.您可能需要访问此文档并了解如何使用 Firebase 服务,例如 Firestore。
ainda permanece艾达永恒
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.