joaogarin / angular-electron

Angular2 and Electron starter using webpack
150 stars 53 forks source link

Firebase Storage ? #57

Closed Nebula-Spark closed 7 years ago

Nebula-Spark commented 7 years ago

Is there Anyway to use firebase storage ? It's working Perfectly fine with angular-cli,

Using the following code , Import *as firebase from 'firebase'

const storage = firebase.strorage().ref()

Above Code Working FIne In webversion

But At node electron getting the following error

firebase.storeage is not a function !

Or Is there any good storage service can you recommend ?

joaogarin commented 7 years ago
firebase.storeage

Is that a typo? Its "storage". but to be quite frank I havent tried it, in web of electron version . I have used firebase with electron just as experiment, but failed in authenticating as previously it was not upported for electron..so I though it was not ideal. But maybe that works fine now.

Nebula-Spark commented 7 years ago

@joaogarin

I just found the solution new version of firebase storage is not supported on nodejs , instead need to use
@google-cloud/storage for file upload .