We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var admin = require("firebase-admin"); new admin.firestore.GeoPoint(latitude, longitude); // Gives error -> TypeError: GeoPoint is not a constructor
The value of admin.firestore.GeoPoint is undefined
undefined
I've reverted back to version 10.3.0 and the code works again.
The text was updated successfully, but these errors were encountered:
I found a few problems with this issue:
Sorry, something went wrong.
This seems similar to #1827 Could you try importing the class using the modular API? More examples are on: #1827 (comment)
import { getFirestore, GeoPoint } from 'firebase-admin/firestore';
I am having an issue using the geopoint constructor.
const GeoPoint = admin.firestore.GeoPoint;
....
const geopoint = new GeoPoint(latitude, longitude); // Add 'g' entry to data data['g'] = { geopoint: geopoint, 'geohash': computedGeohash };
No branches or pull requests
The value of admin.firestore.GeoPoint is
undefined
I've reverted back to version 10.3.0 and the code works again.
The text was updated successfully, but these errors were encountered: