Skip to content
Discussion options

You must be logged in to vote

Why are you assigning service instances to all your other variables but assigning storage().ref() to storage?

export const auth = firebase.auth();
export const firestore = firebase.firestore();
export const storage = firebase.storage().ref();

Later on you import storage in the other file and try to call storage.ref() on it which would be storage().ref().ref()

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@N-dcool
Comment options

Answer selected by N-dcool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants