geofire-js icon indicating copy to clipboard operation
geofire-js copied to clipboard

Bug in the geoFire library

Open Coco0185 opened this issue 2 years ago • 2 comments

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

Coco0185 avatar Jan 31 '23 09:01 Coco0185

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.

kaminwong avatar Aug 03 '23 08:08 kaminwong

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.

AyushBhatia51 avatar Oct 06 '23 07:10 AyushBhatia51