Answers for "ERROR TypeError: firebase_app__WEBPACK_IMPORTED_MODULE_3__.default.storage is not a function at FileReader.reader.onload"

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

Code answers related to "ERROR TypeError: firebase_app__WEBPACK_IMPORTED_MODULE_3__.default.storage is not a function at FileReader.reader.onload"

Code answers related to "Javascript"

Browse Popular Code Answers by Language