Error when using autoCompleteTextView

Thread is closed for posting
2 posts, 0 answers
  1. denny
    denny avatar
    2 posts
    Member since:
    Oct 2017

    Posted 16 Oct 2017 Link to this post

    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!

  2. denny
    denny avatar
    2 posts
    Member since:
    Oct 2017

    Posted 16 Oct 2017 in reply to denny Link to this post

    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.

Back to Top