Giter VIP home page Giter VIP logo

Comments (5)

dalenguyen avatar dalenguyen commented on May 29, 2024

Hi @185driver, the error with disappear if you add this code to your app. Remember to replace firestore if you change the way you declare firestore.

const firestore = new Firestore();
const settings = {timestampsInSnapshots: true};
firestore.settings(settings);

from firestore-import-export.

185driver avatar 185driver commented on May 29, 2024

Thanks for the heads up. I do already have that code in my apps that use Firestore. In this particular case, I'm seeing it when using export.js by itself with my service-key.json file. Am I missing something?

from firestore-import-export.

dalenguyen avatar dalenguyen commented on May 29, 2024

Hi @185driver, can you take a snapshot of what you are doing and the warning if it is possible?

from firestore-import-export.

185driver avatar 185driver commented on May 29, 2024

I fixed it. Both import.js and export.js (lines 14 and 13, respectively) contain const db = admin.firestore(); By adding db.settings({ timestampsInSnapshots: true }); on the next line of both scripts, the Firestore warning message is successfully suppressed.

My suggestion is to add db.settings({ timestampsInSnapshots: true }); to both of your example scripts so as to better support the more recent versions of Firestore.

Again, thanks for this helpful plugin.

from firestore-import-export.

dalenguyen avatar dalenguyen commented on May 29, 2024

Thanks, @185driver, you're right. It depends on how we initiated the firebase app. I will update the scripts.

from firestore-import-export.

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.