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: Setting Geofire Key (childPathObj.split is not a function) #266

Open
jacobbinnie opened this issue Apr 16, 2023 · 1 comment
Open

Comments

@jacobbinnie
Copy link

Hey there,

Been using Geofire and enjoying the functionality. However, there seems to be a bug that's causing a little pain.

When trying to set a geofire key to my realtime database, I get the following error...

Screenshot 2023-04-16 at 12 44 00 PM

Here's my function:

export function setGeofireKey(
  key: string,
  location: [latitude: number, longitude: number],
) {
  geoFire.set(key, location).then(
    function () {
      console.log('Provided key has been added to GeoFire')
    },
    function (error) {
      console.log('Error: ' + error)
    },
  )
}

To be clear, I still successfully save my geofire key to the realtime database, but there's no way for me to prevent that annoying error being thrown for the user on screen which essentially runs my app unusable.

I'm using:

"firebase": "^9.19.1",
 "geofire": "^6.0.0",

Thoughts?

@idomarko98
Copy link

Dealing with the same error. Any solutions?

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

2 participants