Monday, 8 April 2019

Typescript Errors when running ionic serve

  No comments
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


No comments :

Post a Comment

Loading...