Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

TypeError: Cannot read property 'extend' of undefined #1505

@jscti

Description

@jscti

Issue description
JS Error with the new version beta4 (worked fine on beta3) 👍

TypeError: Cannot read property 'extend' of undefined
at AgmMap.push../node_modules/@agm/core/directives/map.js.AgmMap._isLatLngBoundsLiteral (map.js:352)
at AgmMap.push../node_modules/@agm/core/directives/map.js.AgmMap._updateBounds (map.js:337)
at AgmMap.push../node_modules/@agm/core/directives/map.js.AgmMap._fitBounds (map.js:329)
at AgmMap.push../node_modules/@agm/core/directives/map.js.AgmMap._updatePosition (map.js:298)
at AgmMap.push../node_modules/@agm/core/directives/map.js.AgmMap.ngOnChanges (map.js:250)
at checkAndUpdateDirectiveInline (core.js:9239)
at checkAndUpdateNodeInline (core.js:10507)
at checkAndUpdateNode (core.js:10469)
at debugCheckAndUpdateNode (core.js:11102)
at debugCheckDirectivesFn (core.js:11062)

My page is quite complex so I can't give you a simple repro test case right now, but maybe there is no need as the bug seems to be the function _isLatLngBoundsLiteral that seems optimistic by not testing undefined/null prior to use it.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions