Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Implemented
-
3.6.0
-
None
Description
Repro:
1. install cordova 3.6.3-0.2.12
2. cordova create foo
3. cd foo
4. cordova platform add android
5. cordova build android
6. cordova run android – --nobuild
Result:
The app fails to run.
"TypeError: Cannot read property 'length' of undefined at G:\temp36\nobuild2\platforms\android\cordova\lib\build.js:334:35"
Expected:
The app should run without building.
Error details:
G:\temp36\nobuild2>cordova run android -- --nobuild Running command: G:\temp36\nobuild2\platforms\android\cordova\run.bat --nobuild Skipping build... G:\temp36\nobuild2\platforms\android\cordova\node_modules\q\q.js:126 throw e; ^ TypeError: Cannot read property 'length' of undefined at G:\temp36\nobuild2\platforms\android\cordova\lib\build.js:334:35 at _fulfilled (G:\temp36\nobuild2\platforms\android\cordova\node_modules\q\q.js:798:54) at self.promiseDispatch.done (G:\temp36\nobuild2\platforms\android\cordova\node_modules\q\q.js:827:30) at Promise.promise.promiseDispatch (G:\temp36\nobuild2\platforms\android\cordova\node_modules\q\q.js:760:13) at G:\temp36\nobuild2\platforms\android\cordova\node_modules\q\q.js:526:49 at flush (G:\temp36\nobuild2\platforms\android\cordova\node_modules\q\q.js:108:17) at process._tickCallback (node.js:415:13) Error: G:\temp36\nobuild2\platforms\android\cordova\run.bat: Command failed with exit code 8 at ChildProcess.whenDone (C:\Users\joelku\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:135:23) at ChildProcess.EventEmitter.emit (events.js:98:17) at maybeClose (child_process.js:743:16) at Process.ChildProcess._handle.onexit (child_process.js:810:5)
It seems that problem is in none builder. Its build method return undefined instead of array of built backages.