ionic-team / ionic-framework

A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
https://ionicframework.com
MIT License
51.03k stars 13.51k forks source link

New ionic cordova build command goes into deadlock for hours #11711

Closed ghost closed 7 years ago

ghost commented 7 years ago

Ionic version:
[x] 3.x

I'm submitting a ...
[x] bug report

Current behavior:

ionic start xyz......

✔ Creating directory ./xyz - done!
Fetching app base (https://github.com/driftyco/ionic2-app-base/archive/master.tar.gz)
✔ Downloading - done!
Fetching starter template sidemenu (https://github.com/driftyco/ionic2-starter-sidemenu/archive/master.tar.gz)
✔ Downloading - done!
✔ Updating package.json with app details - done!
✔ Creating configuration file ionic.config.json - done!
Installing dependencies may take several minutes!
> npm install
✔ Running command - done!
> npm install --save-dev --save-exact @ionic/cli-plugin-ionic-angular@latest
✔ Running command - done!

♬ ♫ ♬ ♫  Your Ionic app is ready to go! ♬ ♫ ♬ ♫

Run your app in the browser (great for initial development):
  ionic serve

Run on a device or simulator:
  ionic cordova run ios

Test and share your app on a device with the Ionic View app:
  http://view.ionic.io

? Link this app to your Ionic Dashboard to use tools like Ionic View? No

Go to your newly created project: ./xyz

ionic cordova build

? The plugin @ionic/cli-plugin-cordova is not installed. Would you like to install it and continue? Yes
> npm install --save-dev --save-exact @ionic/cli-plugin-cordova@latest
✔ Running command - done!
? What platform would you like to build: ios, android: android
> cordova platform add --save android
✔ Running command - done!
> cordova plugin add --save cordova-plugin-device
✔ Running command - done!
> cordova plugin add --save cordova-plugin-console
✔ Running command - done!
> cordova plugin add --save cordova-plugin-whitelist
✔ Running command - done!
> cordova plugin add --save cordova-plugin-splashscreen
✔ Running command - done!
> cordova plugin add --save cordova-plugin-statusbar
✔ Running command - done!
> cordova plugin add --save ionic-plugin-keyboard
✔ Running command - done!

[12:27:34]  build dev started ... 
[12:27:34]  clean started ... 
[12:27:34]  clean finished in 2 ms 
[12:27:34]  copy started ... 
[12:27:34]  transpile started ... 
[12:27:36]  transpile finished in 1.99 s 
[12:27:36]  preprocess started ... 
[12:27:36]  deeplinks started ... 
[12:27:36]  deeplinks finished in 14 ms 
[12:27:36]  preprocess finished in 15 ms 
[12:27:36]  webpack started ... 
[12:27:36]  copy finished in 2.16 s 
[12:27:43]  webpack finished in 7.72 s 
[12:27:43]  sass started ... 
[12:27:44]  sass finished in 843 ms 
[12:27:44]  postprocess started ... 
[12:27:44]  postprocess finished in 5 ms 
[12:27:44]  lint started ... 
[12:27:44]  build dev finished in 10.61 s 
> cordova build android
⠏ Running command [12:27:46]  lint finished in 2.04 s 
⠹ <<<< i'm stuck here the icon just keeps animating for hours.....

Expected behavior:

should end animating with some message or exit, i had to manually exit (crtl+z key) as below:

⠧ Running command ^Z
[1]+  Stopped                 ionic cordova build

Steps to reproduce: Same as current behavior above

Ionic info: :


global packages:

    @ionic/cli-utils : 1.1.2
    Cordova CLI      : 7.0.1 
    Ionic CLI        : 3.1.2

local packages:

    @ionic/app-scripts              : 1.3.7
    @ionic/cli-plugin-cordova       : 1.1.2
    @ionic/cli-plugin-ionic-angular : 1.1.2
    Ionic Framework                 : ionic-angular 3.2.1

System:

    Node       : v6.10.1
    OS         : macOS Sierra
    Xcode      : Xcode 8.2.1 Build version 8C1002 
    ios-deploy : 1.8.6 
    ios-sim    : 5.0.8 

Platform info: ionic cordova platform

> cordova platform ls
✔ Running command - done!
Installed platforms:
  android 6.2.3
Available platforms: 
  blackberry10 ~3.8.0 (deprecated)
  browser ~4.1.0
  ios ~4.4.0
  osx ~4.0.1
  webos ~3.7.0
janpio commented 7 years ago

What is the exact command you are running? Just ionic cordova build? Try adding --verbose after it for more output. If this doesn't help, try running the cordova command directly and see what it does.

jgw96 commented 7 years ago

This issue was moved to driftyco/ionic-cli#2315

jgw96 commented 7 years ago

Hello all! I just moved this issue to the cli repo as this is an issue related to the cli and not the framework. Thanks!

ionitron-bot[bot] commented 6 years ago

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.