react-google-maps-api icon indicating copy to clipboard operation
react-google-maps-api copied to clipboard

DirectionService.route is not a function

Open Shaheerazam111 opened this issue 3 years ago • 1 comments

I'm trying to implement directionService. My IDE points me exactly to the route function, but react app throws error for invalid type with msg "DirectionService.route is not a function"

there are two possible route properties available when getting hint from ide, one is property, and the other is function. Also, JS import statement is linked to @react-google-maps/api.

Can this be resolved?

Shaheerazam111 avatar Dec 19 '21 13:12 Shaheerazam111

please provide minimal reproduction in codesandbox.io

JustFly1984 avatar Dec 29 '21 04:12 JustFly1984