react-google-maps-api
react-google-maps-api copied to clipboard
DirectionService.route is not a function
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?
please provide minimal reproduction in codesandbox.io