I've updated Angular to v17 and then v18, and then updated ngx-leaflet and ngx-leaflet-markercluster to their latest versions.
Now, when I try to show a map in the browser, it is blank and I get the following error in the console:
ERROR NullInjectorError: R3InjectorError(_AppModule)[_LeafletDirective -> _LeafletDirective]:
NullInjectorError: No provider for _LeafletDirective!
It used to be working, and I have LeafletDirective declared and imported as provider in my app.module.ts
My qc-map.component.html contains the following at the lines at which the error occurs:
I've updated Angular to v17 and then v18, and then updated ngx-leaflet and ngx-leaflet-markercluster to their latest versions. Now, when I try to show a map in the browser, it is blank and I get the following error in the console:
ERROR NullInjectorError: R3InjectorError(_AppModule)[_LeafletDirective -> _LeafletDirective]: NullInjectorError: No provider for _LeafletDirective!
It used to be working, and I have LeafletDirective declared and imported as provider in my app.module.ts
My qc-map.component.html contains the following at the lines at which the error occurs:
Any clues to what's wrong?