# What is error with Typescript?

**URL:** <https://forum.ionicframework.com/t/what-is-error-with-typescript/47748>\
**Category:** uncategorized\
**Created:** [March 29, 2016, 11:22am UTC](https://forum.ionicframework.com/t/what-is-error-with-typescript/47748 "2016-03-29T11:22:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dileepyadav](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/dileepyadav/32/100439_2.png) [@dileepyadav](https://forum.ionicframework.com/u/dileepyadav)\
**Post date:** [March 29, 2016, 11:22am UTC](https://forum.ionicframework.com/t/what-is-error-with-typescript/47748/1 "2016-03-29T11:22:47Z")

</div>

![image](https://global.discourse-cdn.com/ionicframework/original/3X/e/b/ebc1eb100ca78ba8df0cf5c218b5186920ec7473.PNG)

Still program running fine ? Would you explain !

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [March 29, 2016, 7:24pm UTC](https://forum.ionicframework.com/t/what-is-error-with-typescript/47748/2 "2016-03-29T19:24:21Z")

</div>

Your angular version is too old. Edit `package.json` to bump it to at least beta 7. Beta 12 is the most recent as I write this.

---

<div class="post-metadata">

**Author:** ![dileepyadav](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/dileepyadav/32/100439_2.png) [@dileepyadav](https://forum.ionicframework.com/u/dileepyadav)\
**Post date:** [March 30, 2016, 6:45am UTC](https://forum.ionicframework.com/t/what-is-error-with-typescript/47748/3 "2016-03-30T06:45:17Z")

</div>

may be. I am using 2.0.0-beta.6. I am upgrading thanks

---

<div class="post-metadata">

**Author:** ![dileepyadav](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/dileepyadav/32/100439_2.png) [@dileepyadav](https://forum.ionicframework.com/u/dileepyadav)\
**Post date:** [March 30, 2016, 7:08am UTC](https://forum.ionicframework.com/t/what-is-error-with-typescript/47748/4 "2016-03-30T07:08:00Z")

</div>

I am updated with angular 2 beta 7 with all dependency. I am getting same error. I updated Angular2 like

 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/c/e/cefcb9e53396a04b687e56662ec75fbb56a9066c.PNG)

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [March 30, 2016, 7:56pm UTC](https://forum.ionicframework.com/t/what-is-error-with-typescript/47748/5 "2016-03-30T19:56:04Z")

</div>

Did you do an `npm install` after making this change?

---

<div class="post-metadata">

**Author:** ![dileepyadav](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/dileepyadav/32/100439_2.png) [@dileepyadav](https://forum.ionicframework.com/u/dileepyadav)\
**Post date:** [March 31, 2016, 6:27am UTC](https://forum.ionicframework.com/t/what-is-error-with-typescript/47748/6 "2016-03-31T06:27:51Z")

</div>

yes! I installed all dependency as per required version through cli . but I am getting same error ?  
This error , I am finding with only TypeScript work flow of ionic not with JavaScript. I think something changes happening with typescript lib. what you say ?

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [March 31, 2016, 7:32pm UTC](https://forum.ionicframework.com/t/what-is-error-with-typescript/47748/7 "2016-03-31T19:32:10Z")

</div>

> [@dileepyadav](#):
>
> I installed all dependency as per required version through cli

This phrasing sounds suspicious to me. You shouldn’t have to require versions. Once you have changed `package.json`, `npm install` by itself is sufficient. I suspect you haven’t actually done that, so you still have an older Angular version in `node_modules`. To check:

`$ grep version node_modules/angular2/package.json`
