Following this example, I keep getting the error:
TypeError: firebase.storage is not a function
From this line in my code:
import * as firebase from 'firebase/app';
Then firebase.storage().ref() should work.
Hope this helps.