Ionic cordova resources - error

Old project
ionic 3.5.0
@ionic/cli-plugin-cordova 1.4.1

√ Collecting resource configuration and source images - done!
[WARN] Error occurred during command execution from a CLI plugin (@ionic/cli-plugin-cordova). Your plugins may be out of
date.
× Uploading source images to prepare for transformations - failed!
Error: timeout of [object Object]ms exceeded

How to fix?

Run same command with --verbose added at the end.
Does ionic upload work?
Post your ionic info output.

C:\Users\Alexo\PycharmProjects\aran\ADMC>ionic cordova resources --verbose
[DEBUG] Loading global plugin @ionic/cli-plugin-proxy
[DEBUG] Detected .\gulpfile.js in project directory
[DEBUG] Loading local plugin @ionic/cli-plugin-cordova
[DEBUG] Loading local plugin @ionic/cli-plugin-gulp
[DEBUG] Loading local plugin @ionic/cli-plugin-ionic1
[DEBUG] Loading local plugin @ionic/cli-plugin-proxy
[DEBUG] Getting plugin info for ionic
[DEBUG] Getting plugin info for @ionic/cli-plugin-proxy
[DEBUG] Getting plugin info for @ionic/cli-plugin-cordova
[DEBUG] Getting plugin info for @ionic/cli-plugin-gulp
[DEBUG] Getting plugin info for @ionic/cli-plugin-ionic1
[DEBUG] Checking for latest plugin version of ionic@latest.
[DEBUG] Checking for latest plugin version of @ionic/cli-plugin-proxy@latest.
[DEBUG] Checking for latest plugin version of @ionic/cli-plugin-cordova@latest.
[DEBUG] Checking for latest plugin version of @ionic/cli-plugin-gulp@latest.
[DEBUG] Checking for latest plugin version of @ionic/cli-plugin-ionic1@latest.
[DEBUG] Latest version of ionic@latest is 3.5.0.
[DEBUG] Latest version of @ionic/cli-plugin-proxy@latest is 1.3.2.
[DEBUG] Latest version of @ionic/cli-plugin-gulp@latest is 1.0.2.
[DEBUG] Latest version of @ionic/cli-plugin-ionic1@latest is 2.0.1.
[DEBUG] Latest version of @ionic/cli-plugin-cordova@latest is 1.4.1.
[DEBUG] resourceJsonStructure=3
[DEBUG] platformDirContents=android,platforms.json
[DEBUG] buildPlatforms=android
[DEBUG] getProjectPlatforms completed - length=1
[DEBUG] imgResources=12
[DEBUG] createImgDestinationDirectories completed - length=2
[DEBUG] getSourceImages completed - 2
√ Collecting resource configuration and source images - done!
[WARN] Error occurred during command execution from a CLI plugin (@ionic/cli-plugin-cordova). Your plugins may be out of
date.
[DEBUG] !!! ERROR ENCOUNTERED !!!
× Uploading source images to prepare for transformations - failed!
Error: timeout of [object Object]ms exceeded
[DEBUG] Error: timeout of [object Object]ms exceeded
at Timeout.
(C:\Users\Alexo\PycharmProjects\aran\ADMC\node_modules\superagent\lib\node\index.js:891:17)
at ontimeout (timers.js:386:14)
at tryOnTimeout (timers.js:250:5)
at Timer.listOnTimeout (timers.js:214:5)

And the other two questions?

Hm, I did a separate post, but for some reason they are not published

Yes

[ERROR] Error with C:\Users\Alexo\PycharmProjects\aran\ADMC\www\lib\ionic\version.json file: FILE_NOT_FOUND

global packages:

@ionic/cli-plugin-proxy : 1.3.2
@ionic/cli-plugin-proxy : 1.3.2
@ionic/cli-utils        : 1.5.0
Cordova CLI             : 7.0.1
Gulp CLI                : CLI version 3.9.1 Local version 3.9.1
Ionic CLI               : 3.5.0

local packages:

@ionic/cli-plugin-cordova : 1.4.1
@ionic/cli-plugin-gulp    : 1.0.2
@ionic/cli-plugin-ionic1  : 2.0.1
Cordova Platforms         : android 6.2.3
Ionic Framework           : unknown

System:

Node       : v6.11.1
OS         : Windows 10
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed
npm        : 5.3.0

This is strange. Is this file really missing?

Run npm list --depth=0 in your project please.

Yes

C:\Users\Alexo\PycharmProjects\aran\ADMC>npm list --depth=0
t@1.1.1 C:\Users\Alexo\PycharmProjects\aran\ADMC
±- @ionic/cli-plugin-cordova@1.4.1
±- @ionic/cli-plugin-gulp@1.0.2
±- @ionic/cli-plugin-ionic1@2.0.1
±- @ionic/cli-plugin-proxy@1.3.2
±- @ionic/cloud@0.16.0
±- bluebird@3.5.0
±- bower@1.8.0
±- cordova-android@6.2.3
±- cordova-plugin-camera@2.3.1
±- cordova-plugin-console@1.0.7
±- cordova-plugin-device@1.1.6
±- cordova-plugin-file@4.3.3
±- cordova-plugin-file-transfer@1.6.3
±- cordova-plugin-ibox@1.2.0
±- cordova-plugin-splashscreen@4.0.3
±- cordova-plugin-statusbar@2.2.3
±- cordova-plugin-whitelist@1.3.2
±- cordova.plugins.diagnostic@3.6.5
±- gulp@3.9.1
±- gulp-concat@2.6.1
±- gulp-minify-css@0.3.13
±- gulp-rename@1.2.2
±- gulp-sass@2.3.2
±- gulp-util@2.2.20
±- ionic-plugin-deploy@0.6.7
±- ionic-plugin-keyboard@2.2.1
`-- shelljs@0.3.0

www\lib is bower directory
ionic#1.3.3 installed with bower

Projects started with Ionic CLI have this file, that’s why ionic info execpts it. (Checked via ionic start ionic-v1 blank --type=ionic1). Maybe ionic cordova resources does as well.

Does adding --no-timeout to the command run make a difference?

This recent commit looks related, but I don’t really understand what it does: https://github.com/ionic-team/ionic-cli/commit/22dcd2fcee538ca5302476f0d51f0f8b795d1d22

Copy node_modules from new bank ionic project fixed this problem.

Thanks.

Manually futzing with the node_modules directory isn’t really a solution. All projects should be capable of having that directory blown away and regenerated by npm i, and if they aren’t, something fundamental is wrong with them (probably in package.json).

1 Like