I have a : Hook failed with error code 1. And then no errors on scanned files before… Can anyone have any idea…?
Error: Hook failed with error code 1: C:\Users\Usr\Dev\WAIJ\hooks\before_prepare\02_jshint.js
at C:\Users\Usr\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\hooks\HooksRunner.js:194:23
at _rejected (C:\Users\Usr\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:808:24)
at C:\Users\Usr\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:834:30
at Promise.when (C:\Users\Usr\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:1079:31)
at Promise.promise.promiseDispatch (C:\Users\Usr\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:752:41)
at C:\Users\Usr\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:574:44
at flush (C:\Users\Usr\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:108:17)
at process._tickCallback (node.js:419:13)
Sorry @nicraboy to bother you…
I had to disable the linting because of this error.
Do you have any recommendation in order to be able to understand this error ?
Thank you.
Hi,
I think I’m using the Async version like you explained it in the ionic blog.
The issue is not showing when the
var foldersToProcess is an empty array.
I’m having something like 15 folders with separated js files to scan…
I tried your new version with my “foldersToProcess” array and all of my files and the issue is showing as well…
I don’t know how to detect which file is in error.
Actually, if I skip the lint phase I’m able to enable ng-strict-di and making the concatenation…but for Uglify, minify and obfuscate phase I have the same issue!
Well, I’m actually able to make the build (and produce the android-debug.apk)…now the issues are 2:
ionic state reset --> state is not a valid task
during the build (that ends correctly but produce this error…):
processFiles err: Error: ENOENT, scandir '/Users/Vitali/Desktop/cartella senza titolo 3/frontend-adolescenti/platforms/android/assets/www/dist_js’
processFiles err: Error: ENOENT, scandir '/Users/Vitali/Desktop/cartella senza titolo 3/frontend-adolescenti/platforms/android/assets/www/dist_css’
Running command: “/Users/Vitali/Desktop/cartella senza titolo 3/frontend-adolescenti/platforms/android/cordova/run”
I can’t run now the apk
…/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
ERROR: Failed to launch application on device: ERROR: Failed to install apk to device: pkg: /data/local/tmp/android-debug.apk
Do u know something about this?
I have a little bit confusion about the debug apk and the release apk
(if can help i run the buid and run with both Ionic and Cordova with the same results!)