TypeError: Cannot read property 'constructor' of undefined at Ng2AutoCompleteComponent
See original GitHub issueHi,
I installed ng2-auto-complete in my Angular2 project, it is built with angular-cli.
And I imported Ng2AutoCompleteModule in my AppModule.
But I am getting the following error:
TypeError: Cannot read property 'constructor' of undefined at Ng2AutoCompleteComponent
How can I fix it?
Thanks.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Uncaught TypeError: Cannot read property 'Constructor' of ...
I have a django project and want to autocomplete words in an input text box. This is text box: <input type="text" id="keyword_search" ...
Read more >Cannot read property 'constructor' of null. Did I miss something?
Each time I want to chose a product in the new expenses, I got an error "Cannot read property 'constructor' of null" I...
Read more >Cannot read property 'constructor' of undefined - Smart UI ...
Uncaught TypeError: Cannot read property 'constructor' of undefined at HTMLElement.value (smart.button.js?88ec:8)
Read more >Fix: Cannot Read Property 'constructor' of undefined error in ...
The “cannot read property 'constructor' of undefined” error occurs when you attempt to access the constructor property of a variable that is undefined...
Read more >"Cannot read property 'constructor' of undefined" JavaScript ...
Uncaught TypeError: Cannot read property 'constructor' of undefined. This can be experienced for field controls and form field controls, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had this error too. In my case, it was because I had the incorrect variable name in the template (e.g.
<input type="text" auto-complete [source]="myVariable">
)You have a problem with the [source] variable name which you write i.e. [source]=“myVariable”