Giter VIP home page Giter VIP logo

Comments (2)

jbalidiong avatar jbalidiong commented on September 25, 2024

Hi @aravinthkumarpk, thanks for reaching out to us. I was able to replicate the behavior that you've mentioned. I noticed that you're using the namedspace coding structure but importing the modular API. Here is a code snippet for importing the namespace API:

// compat packages are API compatible with namespaced code
import firebase from 'firebase/compat/app';
import 'firebase/compat/auth';
import 'firebase/compat/firestore';

You can also checkout this documentation about migrating to modular version of the SDK. I'll be closing this issue now. If you encounter another issue, feel free to create a new one.

from firebase-js-sdk.

aravinthkumarpk avatar aravinthkumarpk commented on September 25, 2024

Thanks for the super quick response. Appreciate it @jbalidiong. Put out a public appreciation post as well https://twitter.com/aravinthkumarpk/status/1788659691561603341 🙌

Also, there was a minor niggle in the suggestion. I am using real time database and hence had to use "import 'firebase/compat/database' instead of import 'firebase/compat/firestore'.

from firebase-js-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.