Typescript Errors when running ionic serve

Suraj Bahadur
By -
1 minute read
0
Facing following error when running ionic serve

Property 'popTo' in type 'NavControllerBase' is not assignable to the same property in base type 'NavController'. Type '(indexOrViewCtrl: any, opts?: NavOptions, done?: () => void) => Promise<any>' 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'.


Solution: To solve the above problem you just need to downgrade the version of typscript on your machine. Use the below command to downgrade.

npm install typescript@2.4.2


Tags:

Post a Comment

0Comments

Post a Comment (0)