Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

app-scripts 1.2.0 build on Linux fails #838

Closed
pjorquera opened this issue Mar 25, 2017 · 12 comments
Closed

app-scripts 1.2.0 build on Linux fails #838

pjorquera opened this issue Mar 25, 2017 · 12 comments

Comments

@pjorquera
Copy link

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
@jaalzateolaya
Copy link

jaalzateolaya commented Mar 25, 2017

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.

@danbucholtz
Copy link
Contributor

Hmm. Can you try again in 1.2.1?

Thanks,
Dan

@pjorquera
Copy link
Author

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"

@rosterrier
Copy link

same here with linux and 1.2.1

@jaalzateolaya
Copy link

jaalzateolaya commented Mar 26, 2017

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"

@evenicoulddoit
Copy link

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

@MT--
Copy link

MT-- commented Mar 27, 2017

@ionic/app-scripts@1.2.1 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?

@jor-rit
Copy link
Contributor

jor-rit commented Mar 27, 2017

Looks like its b4c287a

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.

@danbucholtz
Copy link
Contributor

@jorrit-wehelp,

Wanna do a PR and remove that code?

Thanks,
Dan

jor-rit added a commit to jor-rit/ionic-app-scripts that referenced this issue Mar 28, 2017
Linux only accept one argument in a shebang, so everything after the
/usr/bin/env is seen as one argument.

For setting this node option, see
npm/npm#12238

Resolve ionic-team#838
@rosterrier
Copy link

still hanging at the same spot

@TiagoNunesDeveloper
Copy link

same here with linux and 1.2.2

@danbucholtz
Copy link
Contributor

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

Thanks,
Dan

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants