codediodeio / sveltefire

Cybernetically enhanced Firebase apps
MIT License
1.64k stars 126 forks source link

Sveltefire require storage parameter? #144

Closed socketopp closed 7 months ago

socketopp commented 7 months ago

I get the following issue when using sveltefire. Anyone else experienced this?

<FirebaseApp {auth} {firestore}>

Property 'storage' is missing in type '{ auth: any; firestore: any; }' but required in type '{ firestore: Firestore; auth: Auth; storage: FirebaseStorage; }'.ts(2741)

ItsAlexousd commented 7 months ago

Hi @socketopp,

Currently, you need to initialize all Firebase services (auth, firestore and storage) even if you don't use them all. PR #130 fixes this problem, but we'll have to wait for @codediodeio to merge it.

socketopp commented 7 months ago

Hi @socketopp,

Currently, you need to initialize all Firebase services (auth, firestore and storage) even if you don't use them all. PR #130 fixes this problem, but we'll have to wait for @codediodeio to merge it.

Thanks for the heads up. Currently using earlier version of Sveltefire that doesn't require. Will update once that once PR #130 is merged.