Ionic-app-scripts: app-scripts 1.2.0 build on Linux fails

Created on 25 Mar 2017  路  12Comments  路  Source: ionic-team/ionic-app-scripts

Short description of the problem:

Build fails when using app-scripts version 1.2.0 on Linux. Output shows a stalled build for more than 10 mins. without any output log. On macOS build is ok.

What behavior are you expecting?

Not stalled build.

Steps to reproduce:

  1. Modify package.json for your app for using app-scripts version 1.2.0
  2. Build project using: ionic build [ios | android |聽browser]
  3. Output is stalled after showing the following:
ionic-app-scripts build

Which @ionic/app-scripts version are you using?

1.2.0

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)

Tested with Linux inside Docker container with the following configuration:

Cordova CLI: 6.5.0 
Ionic Framework Version: 2.3.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.2.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.9
Node Version: v7.5.0
Xcode version: Not installed

Most helpful comment

It's fixed in nightly. npm install @ionic/app-scripts@nightly.

Thanks,
Dan

All 12 comments

It doesn't do anything with any command for me, I've tried clean and serve too but same issue, no output, not any response, but the script appears to be running.

Hmm. Can you try again in 1.2.1?

Thanks,
Dan

With 1.2.1 builds are still failing in Linux (in macOS everything builds and runs ok).

Now the output log shows the following and then stalls from more than 10 mins.:

ionic-app-scripts build "--device" "--prod" "--release"

same here with linux and 1.2.1

With 1.2.1 clean and run are still failing for me. There is not any output. Should I file a new bug? since this one seems to be fixed on builds, but the problem is quite similar "app-scripts does not do anything"

Reverting to 1.1.4 definitely resolved the issue for me, which is consistent with the guys above. Also experiencing no ouptut, Ubuntu 16.04.2, Node v7

@ionic/[email protected] sass <...>/node_modules/@ionic/app-scripts
> node-sass ./src/dev-client/sass/ion-dev.scss --output ./bin/ --output-style compressed

No input file was found.

Why is it looking for source files? src/ should not even be in the module directory?

Looks like its b4c287a494ded6b151e965e32e3e7cb9373c2f21

In linux we can only use max. 1 arg here, the '=' sign in it makes it just hang here instead of returning an error.
Removing the param from the shebang makes it work for me.

@jorrit-wehelp,

Wanna do a PR and remove that code?

Thanks,
Dan

still hanging at the same spot

same here with linux and 1.2.2

It's fixed in nightly. npm install @ionic/app-scripts@nightly.

Thanks,
Dan

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jgw96 picture jgw96  路  3Comments

nalkon picture nalkon  路  4Comments

christofferjjohansen picture christofferjjohansen  路  3Comments

danbucholtz picture danbucholtz  路  4Comments

loicfavory picture loicfavory  路  4Comments