Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25914] Windows: ReferenceError: __ is not defined when building a module where the apiversion does not match

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2018-09-17T09:25:47.000+0000
Affected Version/sRelease 7.1.0, Release 7.0.2, Release 7.1.1
Fix Version/sn/a
ComponentsWindows
Labelsn/a
ReporterEwan Harris
AssigneeEwan Harris
Created2018-03-29T14:10:06.000+0000
Updated2018-09-24T10:26:04.000+0000

Description

Description

When there is an apiversion mismatch between the SDK and a module then the CLI will error with the below
C:\ProgramData\Titanium\mobilesdk\win32\7.1.1.v20180327164201\windows\cli\commands\_buildModule.js:51
                logger.error(__('The module manifest apiversion is currently set to %s', manifest.apiversion));
         ^
ReferenceError: __ is not defined
    at WindowsModuleBuilder.validate (C:\ProgramData\Titanium\mobilesdk\win32\7.1.1.v20180327164201\windows\cli\commands\_buildModule.js:51:10)
    at Object.exports.validatePlatformOptions (C:\ProgramData\Titanium\mobilesdk\win32\7.1.1.v20180327164201\node_modules\node-titanium-sdk\lib\titanium.js:673:69)

Steps to reproduce

1. Create a windows module or download an existing one like ti.paint 2. Change the apiversion in the manifest file 3. Build the module using ti build -p windows --build-only

Actual

Build errors with the above

Expected

Build should not error

Comments

  1. Ewan Harris 2018-03-29

    master: https://github.com/appcelerator/titanium_mobile_windows/pull/1217
  2. Josh Longton 2018-09-17

    *FR Passed*
  3. Josh Longton 2018-09-24

    *Closing ticket* The fix is present in SDK; {noformat} 7.5.0.v20180922081022 {noformat}

JSON Source