I want to enable drawing manager functionality to draw shapes and in another functionality I want to use routing between a source and destination with the help of here-routing-engine.
I'm getting an error "Uncaught TypeError: leaflet__WEBPACK_IMPORTED_MODULE_0__.Control.Draw is not a constructor" everytime when I import leaflet-routing-machine, lrm-here,
leaflet-routing-machine-here in my code when I try to use L.Control.Draw to enable drawing manager.
However, the code works perfectly fine for each case if I use only drawing manager related libraries or if I use only leaflet routing-machine libraries .
I want to support both functionality in my code.
Please help
Thanks.