Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6309] Can't build Windows App (TypeError: Cannot read property 'cyan' of undefined)

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDone
Resolution Date2019-07-18T05:38:21.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
Reporterkooistrag
AssigneeShak Hossain
Created2019-07-15T19:12:24.000+0000
Updated2019-07-18T05:38:21.000+0000

Description

[ERROR] :  Failed to run command "build"
[ERROR] :  TypeError: Cannot read property 'cyan' of undefined
    at WindowsBuilder.loginfo (C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\windows\cli\commands\_build\logInfo.js:62:75)
    at C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\async\dist\async.js:3880:24
    at replenish (C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\async\dist\async.js:1011:17)
    at C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\async\dist\async.js:1016:9
    at eachOfLimit (C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\async\dist\async.js:1041:24)
    at C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\async\dist\async.js:1046:16
    at _parallel (C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\async\dist\async.js:3879:5)
    at Object.series (C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\async\dist\async.js:4735:5)
    at Object.series (C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\node-appc\lib\async.js:73:8)
    at WindowsBuilder.run (C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\windows\cli\commands\_build\run.js:32:13)
---------------------------------------------
    at Object.exports.execFile (child_process.js:356:9)
    at exports.exec (child_process.js:142:18)
    at C:\Users\Gradus\.appcelerator\install\7.0.12\package\node_modules\titanium\node_modules\node-appc\lib\environ.js:267:3
    at C:\Users\Gradus\.appcelerator\install\7.0.12\package\node_modules\titanium\node_modules\node-appc\node_modules\async\dist\async.js:3824:9
    at C:\Users\Gradus\.appcelerator\install\7.0.12\package\node_modules\titanium\node_modules\node-appc\node_modules\async\dist\async.js:460:16
    at replenish (C:\Users\Gradus\.appcelerator\install\7.0.12\package\node_modules\titanium\node_modules\node-appc\node_modules\async\dist\async.js:977:25)
    at iterateeCallback (C:\Users\Gradus\.appcelerator\install\7.0.12\package\node_modules\titanium\node_modules\node-appc\node_modules\async\dist\async.js:967:17)
    at C:\Users\Gradus\.appcelerator\install\7.0.12\package\node_modules\titanium\node_modules\node-appc\node_modules\async\dist\async.js:944:16
    at C:\Users\Gradus\.appcelerator\install\7.0.12\package\node_modules\titanium\node_modules\node-appc\node_modules\async\dist\async.js:3821:13
---------------------------------------------
    at Object.exports.execFile (child_process.js:356:9)
    at exports.exec (child_process.js:142:18)
    at C:\Users\Gradus\.appcelerator\install\7.0.12\package\node_modules\titanium\node_modules\node-appc\lib\environ.js:255:6
    at C:\Users\Gradus\.appcelerator\install\7.0.12\package\node_modules\titanium\node_modules\node-appc\node_modules\async\dist\async.js:3816:26
    at replenish (C:\Users\Gradus\.appcelerator\install\7.0.12\package\node_modules\titanium\node_modules\node-appc\node_modules\async\dist\async.js:982:17)
    at C:\Users\Gradus\.appcelerator\install\7.0.12\package\node_modules\titanium\node_modules\node-appc\node_modules\async\dist\async.js:986:9
    at eachOfLimit (C:\Users\Gradus\.appcelerator\install\7.0.12\package\node_modules\titanium\node_modules\node-appc\node_modules\async\dist\async.js:1011:22)
    at C:\Users\Gradus\.appcelerator\install\7.0.12\package\node_modules\titanium\node_modules\node-appc\node_modules\async\dist\async.js:1016:16
    at _parallel (C:\Users\Gradus\.appcelerator\install\7.0.12\package\node_modules\titanium\node_modules\node-appc\node_modules\async\dist\async.js:3815:5)
---------------------------------------------
    at Object.run (C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\node-appc\lib\subprocess.js:60:8)
    at C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\windowslib\lib\env.js:90:22
    at C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\node-appc\lib\subprocess.js:132:3
    at ChildProcess.exithandler (child_process.js:267:7)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
---------------------------------------------
    at Object.exports.execFile (child_process.js:356:9)
    at exports.exec (child_process.js:142:18)
    at Object.getRealName (C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\node-appc\lib\subprocess.js:131:2)
    at powershell (C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\windowslib\lib\env.js:85:21)
    at C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\windowslib\node_modules\async\lib\async.js:718:13
    at iterate (C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\windowslib\node_modules\async\lib\async.js:262:13)
    at C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\windowslib\node_modules\async\lib\async.js:274:29
    at C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\windowslib\node_modules\async\lib\async.js:44:16
    at C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\windowslib\node_modules\async\lib\async.js:723:17
---------------------------------------------
    at Object.run (C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\node-appc\lib\subprocess.js:60:8)
    at osInfo (C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\windowslib\lib\env.js:71:21)
    at C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\windowslib\node_modules\async\lib\async.js:718:13
    at iterate (C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\windowslib\node_modules\async\lib\async.js:262:13)
    at async.forEachOfSeries.async.eachOfSeries (C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\windowslib\node_modules\async\lib\async.js:281:9)
    at _parallel (C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\windowslib\node_modules\async\lib\async.js:717:9)
    at Object.async.series (C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\windowslib\node_modules\async\lib\async.js:739:9)
    at C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\windowslib\lib\env.js:69:9
    at C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\windowslib\lib\utilities.js:49:3
---------------------------------------------
    at magik (C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\windowslib\lib\utilities.js:34:10)
    at Object.detect (C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\windowslib\lib\env.js:41:9)
    at C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\windowslib\index.js:80:8
    at C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\windowslib\node_modules\async\lib\async.js:181:20
    at Object.async.forEachOf.async.eachOf (C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\windowslib\node_modules\async\lib\async.js:233:13)
    at Object.async.forEach.async.each (C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\windowslib\node_modules\async\lib\async.js:209:22)
    at C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\windowslib\index.js:79:9
    at C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\windowslib\lib\utilities.js:49:3
---------------------------------------------
    at magik (C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\windowslib\lib\utilities.js:34:10)
    at Object.detect (C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\windowslib\index.js:58:9)
    at WindowsBuilder.<anonymous> (C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\windows\cli\commands\_build\config.js:101:14)
    at C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\node-titanium-sdk\lib\titanium.js:117:5
    at C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\async\dist\async.js:3880:24
    at eachOfArrayLike (C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\async\dist\async.js:1069:9)
    at eachOf (C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\async\dist\async.js:1117:5)
    at _parallel (C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\async\dist\async.js:3879:5)
    at Object.parallelLimit [as parallel] (C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA\node_modules\async\dist\async.js:3962:5)

Comments

  1. Rakhi Mitro 2019-07-16

    Hello [~kooistrag], Thanks for sharing with us. Would you mind providing more information for the issues you are experiencing? For example is this something previously working? If so, what SDK you used before? Which event listener is creating the issue? If this is a new issue can you share a simple test project app and test steps to recreate the issue on our end.
  2. kooistrag 2019-07-16

    Hello @rmitro, It's on a new installation and an new template alloy project. After installation the appcelerator studio, Visual Studio Community edition Tested it on a second machine, with the same problems. Also, Appcelerator thinks i have a 32 bits system, but got a 64 bits system (and also a 64 bits version of Visual Studio). I can build the app on an android phone. Titanium SDK: 8.0.2 GA Visual Studio 16.1.6 Windows 10 SDK: 10.0.18362.0
       Operating System
         Name                        = Microsoft Windows 10 Home
         Version                     = 10.0.17134
         Architecture                = 32bit
         # CPUs                      = 4
         Memory                      = 17094262784
       
       Node.js
         Node.js Version             = 8.9.1
         npm Version                 = 5.5.1
       
       Titanium CLI
         CLI Version                 = 5.1.1
       
       Titanium SDK
         SDK Version                 = 8.0.2.GA
         SDK Path                    = C:\ProgramData\Titanium\mobilesdk\win32\8.0.2.GA
         Target Platform             = windows
       
       Command
         C:\Program Files (x86)\nodejs\node.exe C:\Users\Gradus\.appcelerator\install\7.0.12\package\node_modules\titanium\lib\titanium.js build --platform windows --log-level trace --sdk 8.0.2.GA --project-dir C:\Users\Gradus\Documents\Appcelerator_Studio_Workspace-clean\defect --target ws-local --deploy-type development --win-cert --pfx-password --skip-js-minify --skip-js-minify --no-colors --no-progress-bars --no-prompt --prompt-type socket-bundle --prompt-port 51010 --config-file C:\Users\Gradus\AppData\Local\Temp\build-1563305250279.json --no-banner --project-dir C:\Users\Gradus\Documents\Appcelerator_Studio_Workspace-clean\defect
       
       
       
  3. Ewan Harris 2019-07-16

    [~kooistrag] I think this is down to you having Visual Studio 2019 which is unsupported. Please track TIMOB-26924 for this improvement
  4. kooistrag 2019-07-17

    Thanks you for the information. That solves the problem.

JSON Source