Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20299] Windows: Build errors out with 'mix is not a function'

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2016-02-02T00:05:16.000+0000
Affected Version/sRelease 5.2.0
Fix Version/sRelease 5.2.0
ComponentsAndroid, Windows
Labelsqe-5.2.0
ReporterEwan Harris
AssigneeGary Mathews
Created2016-02-01T21:59:53.000+0000
Updated2016-02-02T00:44:40.000+0000

Description

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
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.<anonymous> (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)

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

Actual result

The build fails with ERROR | mix is not a function

Expected result

The build should not error out

Comments

  1. Gary Mathews 2016-02-01

    PR: https://github.com/appcelerator/titanium_mobile/pull/7661
  2. Ewan Harris 2016-02-02

    Verified using: Windows 10 Pro VS 2015 Update 1 Appc NPM: 4.2.3-1 Appc Core: 5.2.0-238 Ti SDK: 5.2.0.v20160201160755 When building a project on Windows the build no longer errors out. Closing ticket.

JSON Source