You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems error has returned in typescript, I receive the below errors using 1.7.1 when navigating away from the route that contains the map.
ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'remove' of undefined
TypeError: Cannot read property 'remove' of undefined
at LeafletDirective.push.TTNa.LeafletDirective.ngOnDestroy (leaflet.directive.js:107)
ERROR TypeError: Cannot read property 'invalidateSize' of undefined
at leaflet.directive.js:162
at ZoneDelegate.invoke (zone-evergreen.js:364)
at Zone.run (zone-evergreen.js:123)
---------Old reference -----------
Just FYI - this issue was actually introduced in v2.2.x
This should be fixed in 2.5.1, let me know if it's still an issue after you update.
Their is the same problem on version 8.1.0, is it going to be corrected on this one as well ?
For information, I am on Angular 10 with @Ngx-leaflet version 8.1.0 and when I arrive directly on the route with the leaflet directive I have :
core.js:4442 ERROR TypeError: Cannot read property 'remove' of undefined
at LeafletDirective.push.TTNa.LeafletDirective.ngOnDestroy (leaflet.directive.js:107)
at executeOnDestroys (core.js:9207)
at cleanUpView (core.js:9131)
at destroyViewTree (core.js:8957)
at destroyLView (core.js:9109)
at ViewContainerRef.remove (core.js:10219)
at ViewContainerRef.clear (core.js:10126)
at NgIf._updateView (common.js:3467)
at NgIf.set ngIf [as ngIf] (common.js:3444)
at setInputsForProperty (core.js:8797)
When i navigate from another page to this one via Angular routing, it simply does not display anything
Seems error has returned in typescript, I receive the below errors using 1.7.1 when navigating away from the route that contains the map.
---------Old reference -----------
Just FYI - this issue was actually introduced in v2.2.x
This should be fixed in 2.5.1, let me know if it's still an issue after you update.
Originally posted by @reblace in #88 (comment)
The text was updated successfully, but these errors were encountered: