Generate Resources Failing

HTTP Error 503 occurs when trying to generate resources.

Output of Ionic Info:

Ionic:

ionic (Ionic CLI) : 4.7.0
Ionic Framework : @ionic/angular 4.7.0
@angular-devkit/build-angular : 0.803.20
@angular-devkit/schematics : 8.1.3
@angular/cli : 8.1.3
@ionic/angular-toolkit : 2.0.0

Cordova:

cordova (Cordova CLI) : not installed
Cordova Platforms : android 8.0.0, browser 5.0.4, ios 5.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 2.5.1, (and 31 other plugins)

System:

NodeJS : v12.16.2 (C:\Program Files\nodejs\node.exe)
npm : 6.14.4
OS : Windows 10

Same problem here :raising_hand_man: it looks like it’s a ionic CLI issue.

Here they suggest to update the CLI to the latest version: https://github.com/ionic-team/ionic/issues/20908

I experience the same problem on my Mac running the latest CLI

On older projects, local CLI will be used to generate resources, thereby resulting in the above reported failure.

run npm i -g cordova-res to be sure the resource generator is installed and up to date.

Then run any of the commands below depending on what resources you want to generate

cordova-res
cordova-res ios --type icon
cordova-res android --type splash