Ionic Pro: Error: cordovaProject.projectConfig.getFileResources is not a function

Hi,

When i want to create package in the ionic pro I have the following error : Error: cordovaProject.projectConfig.getFileResources is not a function

Build log ionic package native build :

$> cordova add platform ios
Adding ios project…
Creating Cordova project for the iOS platform:
Path: platforms/ios
iOS project created with cordova-ios@4.4.0
Error: cordovaProject.projectConfig.getFileResources is not a function
[32;1mRunning after script…
[0;m
[32;1m$ clean-up
[0;m Cleaning up files… Successful clean up
[31;1mERROR: Job failed: exit status 1 [0;m

Ionic info :slight_smile:

global packages:

Cordova CLI : 7.0.1
Gulp CLI    : CLI version 3.9.1 Local version 3.9.1

local packages:

@ionic/app-scripts              : 2.1.4
@ionic/cli-plugin-cordova       : 1.4.1
@ionic/cli-plugin-gulp          : 1.0.2
@ionic/cli-plugin-ionic-angular : 1.3.2
Cordova Platforms               : android 6.2.3 ios 4.4.0
Ionic Framework                 : ionic-angular 3.6.0

System:

Node : v7.0.0
OS   : Windows 7
npm  : 3.10.8

See here:
https://ionic.zendesk.com/hc/en-us/articles/115012096408-Package-Fails-Cordova-4-4-0

I have the same problem.
This downgrade can only be done in the local installation and not in the pro remote installation. I’m wrong?
How can I change the remote cordova-ios version?
[update]
I solved the problem: https://ionic.zendesk.com/hc/en-us/requests/4528?page=1

404:

(I think this is the URL for a private conversation with Ionic support)

…sorry, i did so:

I noticed that the cordova cli version was not displayed by the “ionic info” (not installed) while it was displayed by the “codova -version” (7.0.1), so I reinstalled the cordova by explaining the version: “npm install cordova@7.0.1” and then install the ios@4.3.1 and android platforms again.
Of course “push” and then everything worked.
thanks

3 Likes