ERROR in node_modules/leaflet-sidebar-v2/index.d.ts:50:13 - error TS2416: Property 'on' in type 'Sidebar' is not assignable to the same property in base type 'Evented'.
Type '{ (type: SidebarEvents, fn: LeafletEventHandlerFn, context?: any): this; (eventMap: SidebarEventHandlerFnMap): this; }' is not assignable to type '{ (type: string, fn: LeafletEventHandlerFn, context?: any): this; (type: "baselayerchange" | "overlayadd" | "overlayremove", fn: LayersControlEventHandlerFn, context?: any): this; (type: "layeradd" | "layerremove", fn: LayerEventHandlerFn, context?: any): this; (type: "add" | ... 18 more ... | "predrag", fn: Leaflet...'.
Types of parameters 'type' and 'type' are incompatible.
Type '"baselayerchange" | "overlayadd" | "overlayremove"' is not assignable to type 'SidebarEvents'.
Type '"baselayerchange"' is not assignable to type 'SidebarEvents'.
50 on(type: SidebarEvents, fn: L.LeafletEventHandlerFn, context?: any): this;
~~
node_modules/leaflet-sidebar-v2/index.d.ts:51:13 - error TS2416: Property 'on' in type 'Sidebar' is not assignable to the same property in base type 'Evented'.
Type '{ (type: SidebarEvents, fn: LeafletEventHandlerFn, context?: any): this; (eventMap: SidebarEventHandlerFnMap): this; }' is not assignable to type '{ (type: string, fn: LeafletEventHandlerFn, context?: any): this; (type: "baselayerchange" | "overlayadd" | "overlayremove", fn: LayersControlEventHandlerFn, context?: any): this; (type: "layeradd" | "layerremove", fn: LayerEventHandlerFn, context?: any): this; (type: "add" | ... 18 more ... | "predrag", fn: Leaflet...'.
51 on(eventMap: SidebarEventHandlerFnMap): this;
"@types/leaflet": "^1.5.6",
"leaflet": "^1.6.0",
"leaflet-sidebar-v2": "^3.2.1",
No idea where to go from here. It works, and shows the sidebar, but any deployment to Heroku fails because of the build error.