Skip to content

Help angular fire is not using storage emulator during development #7073

Closed Answered by zer09
zer09 asked this question in Q&A
Discussion options

You must be logged in to vote

Its embarrassing, I been pulling hair for hours already, but the solution is just very simple.
I been using this code

const storage= getStorage();
// more code
const r = ref(this.storage, path);

instead of

const storage= inject(Storage)
// more code
const r = ref(this.storage, path);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zer09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant