Description
When building an Windows Platform project, when attempting to build using the
--build-only
flag, the build fails with the below
[ERROR] Failed to run command "build"
[ERROR] TypeError: Cannot read property 'cyan' of undefined
at WindowsBuilder.loginfo (C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\windows\cli\commands\_build.js:775:64)
at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\node_modules\node-appc\node_modules\async\lib\async.js:610:21
at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\node_modules\node-appc\node_modules\async\lib\async.js:249:17
at iterate (C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\node_modules\node-appc\node_modules\async\lib\async.js:149:13)
at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\node_modules\node-appc\node_modules\async\lib\async.js:160:25
at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\node_modules\node-appc\node_modules\async\lib\async.js:251:21
at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\node_modules\node-appc\node_modules\async\lib\async.js:615:34
at WindowsBuilder.initialize (C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\windows\cli\commands\_build.js:756:2)
at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\node_modules\node-appc\node_modules\async\lib\async.js:610:21
at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\node_modules\node-appc\node_modules\async\lib\async.js:249:17
---------------------------------------------
at exports.execFile (child_process.js:712:9)
at exports.exec (child_process.js:591:18)
at C:\Users\Windo_000\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\lib\environ.js:267:3
at C:\Users\Windo_000\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:251:17
at C:\Users\Windo_000\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:154:25
at C:\Users\Windo_000\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:248:21
at C:\Users\Windo_000\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:612:34
at C:\Users\Windo_000\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\lib\environ.js:261:7
Full logs are attached as fullOutput.txt
Steps To Reproduce
1. Create a new application using
ti create
2. Run the application using
ti build -p windows -T device --build-only
Actual Result
The build will fail with the above error
Expected Result
The build should not fail
https://github.com/appcelerator/titanium_mobile_windows/pull/271
Verified using: Windows 8.1 Appc CLI (NPM): 4.1.0-1 Appc CLI (Registry): 4.1.0-4 Ti SDK: 4.1.0.v20150702030940 When building with the --build-only flag the build no longer fails with the above error Closing ticket