# \[SOLVED\]\[Help\] Upgrading JS project to TS

**URL:** <https://forum.ionicframework.com/t/solved-help-upgrading-js-project-to-ts/55448>\
**Category:** ionic-v3\
**Created:** [June 22, 2016, 3:05am UTC](https://forum.ionicframework.com/t/solved-help-upgrading-js-project-to-ts/55448 "2016-06-22T03:05:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![3m2vinatohr04](https://avatars.discourse-cdn.com/v4/letter/3/9dc877/32.png) [@3m2vinatohr04](https://forum.ionicframework.com/u/3m2vinatohr04)\
**Post date:** [June 22, 2016, 3:05am UTC](https://forum.ionicframework.com/t/solved-help-upgrading-js-project-to-ts/55448/1 "2016-06-22T03:05:30Z")

</div>

Hi guys,

Tried upgrading my JS sources to TS but the compiler is still looking for the app.js file.

Any guide I could use on how to upgrade your Ionic 2 project with JS to TS?

Thanks in advance.

---

<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:** [June 22, 2016, 5:53am UTC](https://forum.ionicframework.com/t/solved-help-upgrading-js-project-to-ts/55448/2 "2016-06-22T05:53:30Z")

</div>

Look for the line in `gulpfile.js` that looks somewhat similar to but not quite like this, and make it look like this:

```auto
var buildBrowserify = require('ionic-gulp-browserify-typescript');

```

---

<div class="post-metadata">

**Author:** ![riteshbhat17](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@riteshbhat17](https://forum.ionicframework.com/u/riteshbhat17)\
**Post date:** [June 22, 2016, 6:12am UTC](https://forum.ionicframework.com/t/solved-help-upgrading-js-project-to-ts/55448/3 "2016-06-22T06:12:04Z")

</div>

better start a new project with --ts  
ionic start MyIonicApp --v2 --ts

and copy-paste your code into the files of the same name in ts project.  
For changing your code according to .ts from .js consider this amazing tutorial. 🙂

> **[Converting ECMAScript 6 to TypeScript in Ionic 2](https://www.joshmorony.com/converting-ecmascript-6-to-typescript-in-ionic-2/)**
>
> When building an Ionic 2 application you have a choice between using regular ECMAScript 6 syntax, or TypeScript. If you’re unfamiliar with what these are I’d recommend reading Intro to …

---

<div class="post-metadata">

**Author:** ![3m2vinatohr04](https://avatars.discourse-cdn.com/v4/letter/3/9dc877/32.png) [@3m2vinatohr04](https://forum.ionicframework.com/u/3m2vinatohr04)\
**Post date:** [June 23, 2016, 9:02am UTC](https://forum.ionicframework.com/t/solved-help-upgrading-js-project-to-ts/55448/4 "2016-06-23T09:02:19Z")

</div>

I’m encountering plenty of ‘Property does not exist’

Anyway around this?

---

<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:** [June 23, 2016, 8:01pm UTC](https://forum.ionicframework.com/t/solved-help-upgrading-js-project-to-ts/55448/5 "2016-06-23T20:01:33Z")

</div>

Declaring all the properties on your classes.

---

<div class="post-metadata">

**Author:** ![3m2vinatohr04](https://avatars.discourse-cdn.com/v4/letter/3/9dc877/32.png) [@3m2vinatohr04](https://forum.ionicframework.com/u/3m2vinatohr04)\
**Post date:** [June 24, 2016, 2:28am UTC](https://forum.ionicframework.com/t/solved-help-upgrading-js-project-to-ts/55448/6 "2016-06-24T02:28:50Z")

</div>

Fixed it by changing `"ionic-gulp-browserify-typescript": "^1.1.0",` in the package.json file to `"ionic-gulp-browserify-typescript": "1.1.0",`

From there I declared the variables.

Thanks everyone for the help 🙂
