📌  相关文章
📜  未捕获的类型错误:firebase_app__WEBPACK_IMPORTED_MODULE_4__.default.storage 不是函数 - Javascript 代码示例

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

代码示例1
I faced the same problem. In my case, I needed to include storage module besides Firebase core.

import firebase from 'firebase';
import 'firebase/storage';  // <----

firebase.initializeApp({
  ...
});
const storageRef = firebase.storage().ref();