Skip to content
New issue

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

Bug in the geoFire library #258

Open
Coco0185 opened this issue Jan 31, 2023 · 2 comments
Open

Bug in the geoFire library #258

Coco0185 opened this issue Jan 31, 2023 · 2 comments

Comments

@Coco0185
Copy link

Hi ,

here is my configuration : with the "npm list" command :

+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
`-- [email protected]

I have this error on this js line :

await geoFireApp.set(context.params.pushId, [original.pickup.lat, original.pickup.lng])

the details :

let geoFireRef = admin.database().ref().child('customerRequest');
console.log("geoFireRef: " + geoFireRef);
let geoFireApp = new geofire.GeoFire(geoFireRef);
console.log("geoFireApp: " + geoFireApp);
await geoFireApp.set(context.params.pushId, [original.pickup.lat, original.pickup.lng])

you can find the logs attached
downloaded-logs-20230131-095956.csv

I ve found someone who had the same issue he recommend to downgrade firebase and geofire I've tried (actually the versions in this message are already downgraded) but it doesnt work.

Do you have any idea?

Thank you for your

Version info

Firebase:

GeoFire:

Other (e.g. Node, browser, operating system) (if applicable):

Test case

Steps to reproduce

Expected behavior

Actual behavior

@kaminwong
Copy link

at /workspace/node_modules/geofire/dist/geofire/index.cjs.js:13322:52 TypeError: Cannot read properties of undefined (reading 'pieceNum_')

With [email protected] I also got an error at this line, after downgrading to [email protected] and [email protected] it worked fine. I would suggest checking your geofire module and look for this file 'index.cjs.js' because 'pieceNum_' does not exist in [email protected], you may still have the newest version installed.

@AyushBhatia51
Copy link

at /workspace/node_modules/geofire/dist/geofire/index.cjs.js:13322:52 TypeError: Cannot read properties of undefined (reading 'pieceNum_')

With [email protected] I also got an error at this line, after downgrading to [email protected] and [email protected] it worked fine. I would suggest checking your geofire module and look for this file 'index.cjs.js' because 'pieceNum_' does not exist in [email protected], you may still have the newest version installed.

This really helped me i was struck scratching my head for two days, as soon as i downgraded it worked instantly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants