Ionic serve issue .showing an error

when i used the ionic serve showing the error.


How can i fix it.please help me anyone.

My 2 cents:

  1. Try running the command ionic serve after opening the command prompt with Run as Administrator.
  2. Try re-installing @ionic-cli with latest version and then run above again.


@sosspyker13 Thank you for your reply .

@sosspyker13 ts still showing error.

below my system environment.

actually i want to create a geofence app. whole code download from Here.please help me.

It looks like your ionic installation is still a little old.
Check below:

cli packages: (C:\Users\xxx\AppData\Roaming\npm\node_modules)

    @ionic/cli-utils  : 1.10.2
    ionic (Ionic CLI) : 3.10.3

global packages:

    Cordova CLI : 7.0.1

local packages:

    @ionic/app-scripts : 2.1.4
    Cordova Platforms  : none
    Ionic Framework    : ionic-angular 3.6.1


    Node              : v8.1.3
    npm               : 5.1.0
    OS                : Windows 7

You may need to install

  • latest ionic framework (unless you are targeting Ionic 2)
  • Node and
  • npm

You can also update your @ionic/app-scripts using:

npm install @ionic/app-scripts@latest --save-dev

More info @ App Build Scripts for Ionic projects


after update all this things
now showing this error.

How can i fix that?

This looks like a typescript syntax issue.
Also check for latest typescript version.

Sir,how to check typescript version.?

Version check: tsc --version

Now typescript version it ok?

after updating the typescript. its still showing error.