This is a migrated thread and some comments may be shown as answers.

Error when using autoCompleteTextView

1 Answer 46 Views
AutoCompleteTextView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
denny
Top achievements
Rank 1
denny asked on 16 Oct 2017, 01:16 PM

I'm trying to add the autoCompleteTextView to my nativescript angular app, using the code from the angular demo github.

 

However, when i type in a letter in the textbox i'm getting the following error:

 

Error: Expecting a valid View instance.
in file /tns-core-modules/ui/core/view-base/view-base.js, line: 409, column 12

 

When i try to trace back the issue, it seems that this line returns undefined:

var view = this.owner.getViewForViewType(commonModule.AutoCompleteViewTypes.ItemView);

(autocomplete.js, line 66)

 

 

It seems this guy has the same problem, but unfortunetly no answer:

https://github.com/telerik/nativescript-ui-feedback/issues/298

 

Thank you in advance!

1 Answer, 1 is accepted

Sort by
0
denny
Top achievements
Rank 1
answered on 16 Oct 2017, 02:49 PM

I hate to say this, but I solved my problem without finding out what was wrong. 

(I made a mistake with GIT, i accidentally deleted my code i did not commit yet. git reset -hard HEAD is a very powerful command)

However, when I repeated the steps from the tutorial i didn't get the same error anymore, but everything worked like expected.

Tags
AutoCompleteTextView
Asked by
denny
Top achievements
Rank 1
Answers by
denny
Top achievements
Rank 1
Share this question
or