Project: titanium
Issue TIMOB-20299: Windows: Build errors out with 'mix is not a function'
h5.Description When building a project using 5_2_X SDK, the build fails with the following, this happens when building for any platform. *This only happens when using 5_2_X SDK* The mix function appears to be missing the 5_2_X windowslib https://github.com/appcelerator/titanium_mobile/blob/5_2_X/node_modules/windowslib/lib/utilities.js {code} 2016-02-01T21:23:40.351Z | ERROR | An uncaught exception was thrown! mix is not a function 2016-02-01T21:23:40.353Z | ERROR | mix is not a function 2016-02-01T21:23:40.354Z | TRACE | TypeError: mix is not a function at C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.v20160201130300\node_modules\windowslib\index.js:70:12 at C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.v20160201130300\node_modules\windowslib\lib\assemblies.js:118:4 at C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.v20160201130300\node_modules\windowslib\lib\utilities.js:48:3 at doNTCallback0 (node.js:419:9) at process._tickCallback (node.js:348:13) --------------------------------------------- at magik (C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.v20160201130300\node_modules\windowslib\lib\utilities.js:33:10) at Object.detect (C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.v20160201130300\node_modules\windowslib\lib\assemblies.js:40:9) at C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.v20160201130300\node_modules\windowslib\index.js:69:8 at C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.v20160201130300\node_modules\async\lib\async.js:181:20 at Object.async.forEachOf.async.eachOf (C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.v20160201130300\node_modules\async\lib\async.js:233:13) at Object.async.forEach.async.each (C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.v20160201130300\node_modules\async\lib\async.js:209:22) at C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.v20160201130300\node_modules\windowslib\index.js:68:9 at C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.v20160201130300\node_modules\windowslib\lib\utilities.js:48:3 --------------------------------------------- at magik (C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.v20160201130300\node_modules\windowslib\lib\utilities.js:33:10) at Object.detect (C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.v20160201130300\node_modules\windowslib\index.js:57:9) at MobileWebBuilder. (C:\ProgramData\Titanium\mobilesdk\win32\5.2.0.v20160201130300\mobileweb\cli\hooks\windows.js:104:14) at C:\Users\ewanh\.appcelerator\install\5.2.0-238\package\node_modules\titanium\lib\hook.js:235:13 at C:\Users\ewanh\.appcelerator\install\5.2.0-238\package\node_modules\titanium\node_modules\async\lib\async.js:689:13 at iterate (C:\Users\ewanh\.appcelerator\install\5.2.0-238\package\node_modules\titanium\node_modules\async\lib\async.js:265:13) at async.forEachOfSeries.async.eachOfSeries (C:\Users\ewanh\.appcelerator\install\5.2.0-238\package\node_modules\titanium\node_modules\async\lib\async.js:2 at _parallel (C:\Users\ewanh\.appcelerator\install\5.2.0-238\package\node_modules\titanium\node_modules\async\lib\async.js:688:9) at Object.async.series (C:\Users\ewanh\.appcelerator\install\5.2.0-238\package\node_modules\titanium\node_modules\async\lib\async.js:710:9) {code} h5.Steps to reproduce 1. Create a project using {{appc new --type titanium --name preprodclassic --id com.appc.test--classic}} 2. {{cd}} into the project location 3. Build the project using any of {{appc run -p windows -T wp-emulator}}, {{appc run -p android -T device --build-only}} h5.Actual result The build fails with {{ERROR | mix is not a function}} h5.Expected result The build should not error out
Story points: 3