flamelink / flamelink-js-sdk

🦊 Official Flamelink JavaScript SDK for both the Firebase Realtime database and Cloud Firestore
https://flamelink.github.io/flamelink-js-sdk
MIT License
42 stars 5 forks source link

[FLAMELINK] The "firestore" Firebase service could not be instantiated. #198

Closed zawadzki-dawid closed 2 years ago

zawadzki-dawid commented 2 years ago

Hi,

I have a problem with instantiating a Firebase service. For me, it looks like I'm doing everything right, but maybe I'm missing something.

Current setting is;

But I've tested various flamelink and firebase versions

Error: [FLAMELINK] The "firestore" Firebase service could not be instantiated. Please ensure you have imported the package for this service.

Thank you for help!

import { initializeApp } from 'firebase/app'
import 'firebase/auth'
import 'firebase/firestore'
import flamelink from 'flamelink/app'
import 'flamelink/cf/content'

const firebaseApp = initializeApp({
    apiKey: '',
    authDomain: '',
    projectId: ',
    storageBucket: '',
    messagingSenderId: '',
    appId: '',
    measurementId: ''
})

const flamelinkApp = flamelink({ 
    firebaseApp,
    dbType: 'cf'
})

flamelinkApp.content.get({ 
    schemaKey:''
})
zawadzki-dawid commented 2 years ago

I've missed the solved issue, sorry https://github.com/flamelink/flamelink-js-sdk/issues/180