Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

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();
Comment

PREVIOUS NEXT
Code Example
Javascript :: sleep for 1 second 
Javascript :: “javascript sleep 1 second 
Javascript :: jquery for each tr in td 
Javascript :: disable textbox jquery 
Javascript :: redux devtools with middleware 
Javascript :: react native cover image 
Javascript :: jquery enforce important 
Javascript :: get site url javascript 
Javascript :: how to use another port in angular 
Javascript :: delay in javascript 
Javascript :: ajax beforesend 
Javascript :: mongoose nestjs installation 
Javascript :: angular go to route 
Javascript :: how to get the first key in a n object in javascript 
Javascript :: ejs if else 
Javascript :: number with commas js 
Javascript :: how to displayan inteiger to a tenth in javascript 
Javascript :: dom ready js 
Javascript :: page reload timeout 
Javascript :: remove all inline css jquery 
Javascript :: axios node js set user agent 
Javascript :: pick a random element from an array javascript 
Javascript :: react toggle class 
Javascript :: href back page javascript 
Javascript :: ajax request header laravel 
Javascript :: math.random javascript 
Javascript :: javascript ucwords 
Javascript :: javascript remove focus from button 
Javascript :: how to remove the parent div from the child in jquery 
Javascript :: disable input field from jquery 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =