You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting the following error when trying to use findPlace with version 0.5.4 of this library:
TypeError: Cannot read property 'split' of undefined
at /node_modules/@google/maps/lib/apis/places.js:58:37
at /node_modules/@google/maps/lib/internal/validate.js:168:15
at Array.forEach (native)
at Object.validator (/node_modules/@google/maps/lib/internal/validate.js:167:16)
at Object.findPlace (/node_modules/@google/maps/lib/index.js:55:25)
I tracked it down and found that findPlace now expects a locationbias parameter that needs to be a string on line 58 of places.js (because split is called on it):
var parts = query.locationbias.split(':');
I was able to solve my problem by passing an empty string for locationbias:
Hello,
I am getting the following error when trying to use
findPlace
with version 0.5.4 of this library:I am calling this method like so:
I tracked it down and found that
findPlace
now expects a locationbias parameter that needs to be a string on line 58 of places.js (because split is called on it):I was able to solve my problem by passing an empty string for locationbias:
But my guess is that locationbias should be optional rather than needing to pass an empty string.
The text was updated successfully, but these errors were encountered: