# Typescript Errors when running ionic serve

**URL:** <https://forum.ionicframework.com/t/typescript-errors-when-running-ionic-serve/170168>\
**Category:** ionic-v3\
**Created:** [August 1, 2019, 8:34am UTC](https://forum.ionicframework.com/t/typescript-errors-when-running-ionic-serve/170168 "2019-08-01T08:34:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashok12](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@ashok12](https://forum.ionicframework.com/u/ashok12)\
**Post date:** [August 1, 2019, 8:34am UTC](https://forum.ionicframework.com/t/typescript-errors-when-running-ionic-serve/170168/1 "2019-08-01T08:34:00Z")

</div>

i have typescript": “^2.3.3”. when i trie to run with ionic serve i get thos error  
Typescript Error

Class ‘Tabs’ incorrectly implements interface ‘NavigationContainer’. Types of property ‘parent’ are incompatible. Type ‘NavControllerBase’ is not assignable to type ‘NavController’. Types of property ‘popTo’ are incompatible. Type ‘(indexOrViewCtrl: any, opts?: NavOptions, done?: () =\> void) =\> Promise’ is not assignable to type ‘(page: string | Page | ViewController, params?: any, opts?: NavOptions, done?: Function) =\> Promi…’. Types of parameters ‘done’ and ‘opts’ are incompatible. Type ‘NavOptions’ is not assignable to type ‘() =\> void’.

Typescript Error

Class ‘NavControllerBase’ incorrectly implements interface ‘NavController’. Types of property ‘popTo’ are incompatible. Type ‘(indexOrViewCtrl: any, opts?: NavOptions, done?: () =\> void) =\> Promise’ is not assignable to type ‘(page: string | Page | ViewController, params?: any, opts?: NavOptions, done?: Function) =\> Promi…’. Types of parameters ‘done’ and ‘opts’ are incompatible. Type ‘NavOptions’ is not assignable to type ‘() =\> void’. Type ‘NavOptions’ provides no match for the signature ‘(): void’.

Typescript Error

Class ‘Subject’ incorrectly extends base class ‘Observable’. Types of property ‘lift’ are incompatible. Type ‘(operator: Operator\<T, R\>) =\> Observable’ is not assignable to type ‘(operator: Operator\<T, R\>) =\> Observable’. Type ‘Observable’ is not assignable to type ‘Observable’. Type ‘T’ is not assignable to type ‘R’.

Typescript Error

Class ‘WebSocketSubject’ incorrectly extends base class ‘AnonymousSubject’. Types of property ‘lift’ are incompatible. Type ‘(operator: Operator\<T, R\>) =\> WebSocketSubject’ is not assignable to type ‘(operator: Operator\<T, R\>) =\> Observable’. Type ‘WebSocketSubject’ is not assignable to type ‘Observable’. Types of property ‘operator’ are incompatible. Type ‘Operator\<any, R\>’ is not assignable to type ‘Operator\<any, T\>’. Type ‘R’ is not assignable to type ‘T’.

…  
those errors appears since i upgrade ionic.  
here’s a screen shot of my ionic info

 ![Sans%20titre](https://global.discourse-cdn.com/ionicframework/original/3X/4/5/4563e31fb6c0593f72691002c44f4fdcf9c1094d.png)

i have tied to ugrade typescript version to 3.5.3 but still get the same issues !!?  
Any suggestion?

---

<div class="post-metadata">

**Author:** ![ishaquemujtaba](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ishaquemujtaba/32/125667_2.png) [@ishaquemujtaba](https://forum.ionicframework.com/u/ishaquemujtaba)\
**Post date:** [August 2, 2019, 1:55pm UTC](https://forum.ionicframework.com/t/typescript-errors-when-running-ionic-serve/170168/2 "2019-08-02T13:55:19Z")

</div>

Hi [ashok12](https://forum.ionicframework.com/u/ashok12) don’t worry I am here to help you, do below steps

npm install toolkit

npm rebuild --force

npm i

it will fixed,  
**cheers!!**

---

<div class="post-metadata">

**Author:** ![ashok12](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@ashok12](https://forum.ionicframework.com/u/ashok12)\
**Post date:** [August 2, 2019, 2:34pm UTC](https://forum.ionicframework.com/t/typescript-errors-when-running-ionic-serve/170168/3 "2019-08-02T14:34:35Z")

</div>

Sorry it doesn’t fixe it. it make it even worse  
thanks for your suggestion anyway.

---

<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:** [August 5, 2019, 5:56pm UTC](https://forum.ionicframework.com/t/typescript-errors-when-running-ionic-serve/170168/4 "2019-08-05T17:56:23Z")

</div>

Could you please post `package.json`? It looks like you have some sort of frankenproject that is a mishmash of incompatible versions of things.

---

<div class="post-metadata">

**Author:** ![ashok12](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@ashok12](https://forum.ionicframework.com/u/ashok12)\
**Post date:** [August 6, 2019, 8:56am UTC](https://forum.ionicframework.com/t/typescript-errors-when-running-ionic-serve/170168/5 "2019-08-06T08:56:50Z")

</div>

here’s my package.json

```auto
{
    "name": "",
    "author": "Platform",
    "homepage": "",
    "private": true,
    "scripts": {
        "clean": "ionic-app-scripts clean",
        "build": "ionic-app-scripts build",
        "ionic:build": "ionic-app-scripts build",
        "ionic:serve": "ionic-app-scripts serve"
    },
    "dependencies": {
        "@angular/common": "4.1.3",
        "@angular/compiler": "4.1.3",
        "@angular/compiler-cli": "4.1.3",
        "@angular/core": "4.1.3",
        "@angular/forms": "4.1.3",
        "@angular/http": "4.1.3",
        "@angular/platform-browser": "4.1.3",
        "@angular/platform-browser-dynamic": "4.1.3",
        "@angular/tsc-wrapped": "^4.3.3",
        "@ionic-native/camera": "^4.1.0",
        "@ionic-native/core": "4.1.0",
        "@ionic-native/document-viewer": "^4.1.0",
        "@ionic-native/facebook": "^4.1.0",
        "@ionic-native/file": "^4.1.0",
        "@ionic-native/file-opener": "^4.1.0",
        "@ionic-native/file-path": "^4.1.0",
        "@ionic-native/file-transfer": "^4.1.0",
        "@ionic-native/image-resizer": "^4.1.0",
        "@ionic-native/local-notifications": "^4.1.0",
        "@ionic-native/splash-screen": "4.1.0",
        "@ionic-native/status-bar": "4.1.0",
        "@ionic/storage": "2.0.1",
        "@types/cordova": "0.0.34",
        "@types/node": "^7.0.27",
        "cheerio": "^1.0.0-rc.2",
        "colors": "^1.1.2",
        "cordova-android": "^6.2.1",
        "cordova-plugin-camera": "~2.4.1",
        "cordova-plugin-console": "1.0.5",
        "cordova-plugin-device": "1.1.4",
        "cordova-plugin-facebook4": "^1.9.1",
        "cordova-plugin-whitelist": "1.3.1",
        "csp-parse": "0.0.2",
        "elementtree": "^0.1.7",
        "ionic": "^5.2.3",
        "ionic-angular": "3.5.3",
        "ionic-plugin-keyboard": "~2.2.1",
        "ionic2-alpha-scroll": "^2.0.1",
        "ionicons": "3.0.0",
        "lodash": "^4.17.15",
        "native-run": "^0.2.8",
        "natives": "^1.1.6",
        "ng2-pdf-viewer": "^1.1.0",
        "plist": "^2.1.0",
        "readable-stream": "^2.3.3",
        "rxjs": "5.4.0",
        "sw-toolbox": "3.6.0",
        "toolkit": "^1.5.4",
        "tslint": "3.15.1",
        "tslint-ionic-rules": "0.0.8",
        "util-deprecate": "^1.0.2",
        "zone.js": "0.8.12"
    },
    "devDependencies": {
        "@ionic/app-scripts": "^3.2.4",
        "@ionic/cli-plugin-cordova": "1.4.1",
        "@ionic/cli-plugin-ionic-angular": "1.3.2",
        "@types/lodash": "^4.14.71",
        "grunt": "^1.0.4",
        "grunt-contrib-jshint": "^2.1.0",
        "grunt-contrib-nodeunit": "^2.0.0",
        "grunt-contrib-uglify": "^4.0.1",
        "gulp": "^4.0.2",
        "gulp-clean-css": "^4.2.0",
        "gulp-rename": "1.2.2",
        "gulp-replace": "0.5.4",
        "gulp-sass": "^3.1.0",
        "gulp-tslint": "6.1.2",
        "node-sass": "^4.12.0",
        "typescript": "^2.3.3"
    },
    "cordovaPlugins": [
        "cordova-plugin-whitelist",
        "cordova-plugin-console",
        "cordova-plugin-device",
        "ionic-plugin-keyboard"
    ],
    "cordovaPlatforms": [
        "andoid",
        {
            "platform": "android",
            "version": "",
            "locator": "android"
        }
    ],
    "description": "",
    "cordova": {
        "plugins": {
            "cordova-plugin-console": {},
            "cordova-plugin-device": {},
            "cordova-plugin-whitelist": {},
            "ionic-plugin-keyboard": {},
            "cordova-plugin-camera": {},
            "cordova-plugin-facebook4": {
                "APP_ID": "",
                "APP_NAME": ""
            }
        },
        "platforms": [
            "android"
        ]
    }
}

```

---

<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:** [August 6, 2019, 7:23pm UTC](https://forum.ionicframework.com/t/typescript-errors-when-running-ionic-serve/170168/6 "2019-08-06T19:23:23Z")

</div>

Can you try creating a new project with:

```auto
$ ionic start --type=ionic-angular

```

…and see if you are able to build and run that? If so, then try parachuting your code from the broken project into that building project and try to solve this that way.
