Skip to content

options.push is not a function #104

@ghost

Description

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

OS and Version?

Win10

Versions

1.6.0
7.2.14

Repro steps

<input matInput matGoogleMapsAutocomplete matValidateAddress [types]="'geocode'"  [country]="['us','ca']" placeholder="Local Place" 
                class="localPlace" (onLocationSelected)="locationChanged($event)" data-lpignore="true">

The log given by the failure

<MyComponentName>.html:26 ERROR TypeError: options.push is not a function
    at MatGoogleMapsAutocompleteDirective.ngOnInit (google-maps-autocomplete.js:264)
    at checkAndUpdateDirectiveInline (core.js:28285)
    at checkAndUpdateNodeInline (core.js:29961)
    at checkAndUpdateNode (core.js:29900)
    at debugCheckAndUpdateNode (core.js:30868)
    at debugCheckDirectivesFn (core.js:30811)
    at Object.eval [as updateDirectives] (MissingPersonDetailComponent.html:26)
    at Object.debugUpdateDirectives [as updateDirectives] (core.js:30799)
    at checkAndUpdateView (core.js:29865)
    at callViewAction (core.js:30231)

Mention any other details that might be useful

Showed up only after update from 1.5.0 to 1.6.0.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions