Cannot resolve all parameters error

Not exactly the solution to the problem.

This is part of the difference between how JS and TS handle parameter decoration. So nav: NavController is valid typescript, but not valid javascript.

So in your case, you probably pulled that from the docs, which reference typescript examples. in that case, you’ll want to use this for Javascript

export class ListPage {
  static get parameters() {
    return [[NavController], [NavParams]];
  }

  constructor(nav, navParams) {}
}

https://github.com/driftyco/ionic2-starter-sidemenu/blob/master/app/pages/list/list.js

4 Likes