Ionic serve issue .showing an error


#1

when i used the ionic serve showing the error.

error2

How can i fix it.please help me anyone.


#2

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.

Thanks.


#3

@sosspyker13 Thank you for your reply .


#4

@sosspyker13 ts still showing error.

below my system environment.
cli


#5

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


#6

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

System:

    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

Update:
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

Thanks.


#7

after update all this things
now showing this error.

How can i fix that?


#8

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


#9

Sir,how to check typescript version.?


#10

Version check: tsc --version


#11

Now typescript version .2.5.2.is it ok?


#12

after updating the typescript. its still showing error.