# Cannot resolve all parameters error

**URL:** <https://forum.ionicframework.com/t/cannot-resolve-all-parameters-error/44969>\
**Category:** ionic-v3\
**Created:** [February 28, 2016, 1:50pm UTC](https://forum.ionicframework.com/t/cannot-resolve-all-parameters-error/44969 "2016-02-28T13:50:30Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [February 29, 2016, 11:44pm UTC](https://forum.ionicframework.com/t/cannot-resolve-all-parameters-error/44969/7 "2016-02-29T23:44:55Z")

</div>

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

```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](https://github.com/driftyco/ionic2-starter-sidemenu/blob/master/app/pages/list/list.js)

---

_[View the full topic](https://forum.ionicframework.com/t/cannot-resolve-all-parameters-error/44969)._
