Ionic 2 Typescript error while compiling

Asked

Viewed 108 times

0

I am making the construction of the side menu (side-menu) the first step of inserting the button and the first tab was quiet, but in the opening part of these tabs as for example "page one" or "page two" gives two types of alternating errors.

One is "; expected", that is, point and comma being expected, except that in the code is already there the ;

erro ponto virgula

but still the error appears the code in question is:

openPage(page) {
    this.nav.setRoot(page.component);
}

The other error that commonly appears to me is that the method in the case openPage is not

erro metodo

  • Finish and run the server again: ionic server

  • Even restarting the process keeps the same error

  • So it’s because it’s really missing a dot and comma.

  • 2

    Possible duplicate of Type Script Ionic Error 2

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.