After updating to cli 3.6.0 and ionic 3.9.2 I get a previously unencountered error with ionic upload:
[WARN] No Cordova platforms listed in config.xml. Nothing to prepare.
Fails to upload the snap shot.
Does however work with --nobuild flag
here’s my output:
ionic info
cli packages: (C:\Users\scott\Ionic\fireTest\node_modules)
@ionic/cli-utils : 1.9.2
ionic (Ionic CLI) : 3.9.2
global packages:
Cordova CLI : 7.0.1
local packages:
@ionic/app-scripts : 2.1.4
Cordova Platforms : none
Ionic Framework : ionic-angular 3.6.0
System:
Node : v6.11.2
npm : 5.3.0
OS : Windows 10
C:\Users\scott\Ionic\fireTest>ionic upload
[INFO] Running app-scripts build:
[14:41:21] build dev started …
[14:41:21] clean started …
[14:41:21] clean finished in 16 ms
[14:41:21] copy started …
[14:41:22] transpile started …
[14:41:27] transpile finished in 5.63 s
[14:41:27] preprocess started …
[14:41:27] deeplinks started …
[14:41:27] deeplinks finished in 250 ms
[14:41:27] preprocess finished in 266 ms
[14:41:27] webpack started …
[14:41:28] copy finished in 6.12 s
[14:41:41] webpack finished in 13.30 s
[14:41:41] sass started …
[14:41:44] sass finished in 3.17 s
[14:41:44] postprocess started …
[14:41:44] postprocess finished in 18 ms
[14:41:44] lint started …
[14:41:44] build dev finished in 22.48 s
ionic cordova prepare
[WARN] No Cordova platforms listed in config.xml. Nothing to prepare.
You can save your installed platforms to config.xml with the ionic cordova platform save command.
[14:41:48] lint finished in 4.41 s
C:\Users\scott\Ionic\fireTest>ionic upload --nobuild
√ Requesting snapshot upload - done!
√ Uploading snapshot - done!
[OK] Uploaded snapshot 1efc369b-1c90-4160-a97f-77e9327217df!
C:\Users\scott\Ionic\fireTest> ionic cordova platform list
cordova platform ls
√ Running command - done!
Installed platforms:
Available platforms:
android ~6.2.2
blackberry10 ~3.8.0 (deprecated)
browser ~4.1.0
webos ~3.7.0
windows ~5.0.0
C:\Users\scott\Ionic\fireTest>cordova platform list
Installed platforms:
Available platforms:
android ~6.2.2
blackberry10 ~3.8.0 (deprecated)
browser ~4.1.0
webos ~3.7.0
windows ~5.0.0
{}