Answers for "firebase.storage is not a function"

3

Uncaught TypeError: firebase_app__WEBPACK_IMPORTED_MODULE_4__.default.storage is not a function

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();
Posted by: Guest on January-23-2021
1

firebase.database is not a function

<script src="https://www.gstatic.com/firebasejs/7.24.0/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.24.0/firebase-database.js"></script>
// don't forget to change the "7.24.0" part of the url with the current version
Posted by: Guest on October-23-2020

Code answers related to "firebase.storage is not a function"

Code answers related to "Javascript"

Browse Popular Code Answers by Language