📜  在“firebase 应用程序”中找不到导出“默认”(导入为“firebase”) - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:29.540000             🧑  作者: Mango

代码示例3
// According to the documentation, Apps currently using Firebase Web SDK
// version 8 or earlier should consider migrating to version 9 as follows:

// v9 compat packages are API compatible with v8 code
import firebase from 'firebase/compat/app';
import 'firebase/compat/auth';
import 'firebase/compat/firestore';