Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev Dependencies (like Gulp, etc) getting built and build is failing because of which Gulp integration is not working currently. #195

Closed
Headcult opened this issue Apr 26, 2016 · 3 comments

Comments

@Headcult
Copy link

Thanks for the amazing work on integrating Angular 2 with NativeScript at such a good pace. Looking forward for future releases.

The main issue that I'm facing now is:
Dev Dependencies (like Gulp, etc) getting built and build is failing because of which Gulp integration is not working currently.

Can this be fixed at the earliest as we are unable to use Gulp within our project when using Angular 2 and NativeScript?

My Dev Dependencies:

"devDependencies": { "nativescript-dev-typescript": "^0.3.1", "shelljs": "^0.5.3", "typescript": "^1.8.9", "gulp": "^3.9.1", "gulp-debug": "^2.1.2", "gulp-typescript": "^2.12.1", "del": "^2.2.0", "run-sequence": "^1.1.4" }

Build Failure:

`:processDebugResources FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':processDebugResources'.

    com.android.ide.common.process.ProcessException: org.gradle.process.internal.E
    xecException: Process 'command 'C:\Android\android-sdk\build-tools\23.0.3\aapt.e
    xe'' finished with non-zero exit value 1`

@hdeshev
Copy link
Contributor

hdeshev commented May 5, 2016

I finally reproduced the problem, and I believe this to be a problem with how nativescript-cli handles npm dependencies. Steps to reproduce:

  1. Start an empty project.
  2. Run it using $ tns run android
  3. Install gulp: $ npm install gulp --save-dev
  4. $ tns run android

Working around the problem is easy, but not obvious -- don't call npm, but let the tns tool do that for you by adding gulp to your package.json and running tns install or just tns run android

@hdeshev
Copy link
Contributor

hdeshev commented May 5, 2016

This issue was moved to NativeScript/nativescript-cli#1740

@hdeshev hdeshev closed this as completed May 5, 2016
@Headcult
Copy link
Author

Headcult commented May 5, 2016

Thanks @hdeshev, will try with tns install and let you know. Thanks a ton for the quick response!

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

No branches or pull requests

2 participants