TypeScript >=3.6.4 and <3.9.0 but 4.3.5 was found instead

Hi All

I am working on trying to update my Ionic App from 5 to 6.

I have installed Angular 12, which I believe can work with TypeScript 4.3.5. But I am getting the following error

ERROR in The Angular Compiler requires TypeScript >=3.6.4 and <3.9.0 but 4.3.5 was found instead.

This is the output I get when preforming an ionic info

PS G:\AVR_Project\Ionic Projects\App0001-AardraCloud> ionic info
Ionic:

   Ionic CLI                     : 6.13.1 (C:\Users\djosh\AppData\Roaming\npm\node_modules\@ionic\cli)      
   Ionic Framework               : @ionic/angular 6.1.7
   @angular-devkit/build-angular : 0.900.7
   @angular-devkit/schematics    : 12.2.17
   @angular/cli                  : 12.2.17
   @ionic/angular-toolkit        : 2.3.3

Capacitor:

   Capacitor CLI   : 3.5.1
   @capacitor/core : 3.5.1

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : none
   Cordova Plugins   : no whitelisted plugins (0 plugins total)

Utility:

   cordova-res : not installed
   native-run  : 1.6.0

System:

   NodeJS : v14.15.1 (C:\Program Files\nodejs\node.exe)
   npm    : 6.14.8
   OS     : Windows 10

Ty to install angular 13 and @ionic/angular-toolkit 6.1.0 (maybe you have some other dependencies to update)

this is my ionic info output and i have no problems at all

Ionic:

   Ionic CLI                     : 6.19.1 (/usr/local/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 6.1.5
   @angular-devkit/build-angular : 13.3.5
   @angular-devkit/schematics    : 13.3.5
   @angular/cli                  : 13.3.5
   @ionic/angular-toolkit        : 6.1.0

Capacitor:

   Capacitor CLI      : 3.5.1
   @capacitor/android : 3.5.1
   @capacitor/core    : 3.5.1
   @capacitor/ios     : 3.5.1

Thanks, i got it working.

It seems that i needed to update all my angular npm plugins.

1 Like