{ "id": "171425", "key": "TIMOB-25914", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-09-17T09:25:47.000+0000", "created": "2018-03-29T14:10:06.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "19957", "description": "", "name": "Release 7.1.0", "archived": false, "released": true, "releaseDate": "2018-03-14" }, { "id": "20060", "description": "", "name": "Release 7.0.2", "archived": false, "released": true, "releaseDate": "2018-02-09" }, { "id": "20102", "name": "Release 7.1.1", "archived": false, "released": true, "releaseDate": "2018-05-02" } ], "issuelinks": [], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2018-09-24T10:26:04.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h5.Description\r\n\r\nWhen there is an apiversion mismatch between the SDK and a module then the CLI will error with the below\r\n\r\n{code}\r\nC:\\ProgramData\\Titanium\\mobilesdk\\win32\\7.1.1.v20180327164201\\windows\\cli\\commands\\_buildModule.js:51\r\n logger.error(__('The module manifest apiversion is currently set to %s', manifest.apiversion));\r\n ^\r\nReferenceError: __ is not defined\r\n at WindowsModuleBuilder.validate (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\7.1.1.v20180327164201\\windows\\cli\\commands\\_buildModule.js:51:10)\r\n at Object.exports.validatePlatformOptions (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\7.1.1.v20180327164201\\node_modules\\node-titanium-sdk\\lib\\titanium.js:673:69)\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n1. Create a windows module or download an existing one like ti.paint\r\n2. Change the apiversion in the manifest file\r\n3. Build the module using {{ti build -p windows --build-only}}\r\n\r\nh5.Actual\r\n\r\nBuild errors with the above\r\n\r\nh5.Expected\r\n\r\nBuild should not error", "attachment": [], "flagged": false, "summary": "Windows: ReferenceError: __ is not defined when building a module where the apiversion does not match", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Ti SDK: 7.1.1.v20180327164201\r\nWindows 10 Pro", "closedSprints": [ { "id": 1018, "state": "closed", "name": "2018 Sprint 07 SDK", "startDate": "2018-03-25T21:59:36.637Z", "endDate": "2018-04-08T21:59:00.000Z", "completeDate": "2018-04-08T17:55:14.467Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "436089", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "master: https://github.com/appcelerator/titanium_mobile_windows/pull/1217", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-03-29T15:03:15.000+0000", "updated": "2018-03-29T15:03:15.000+0000" }, { "id": "441610", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "*FR Passed*", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2018-09-17T09:26:03.000+0000", "updated": "2018-09-17T09:26:14.000+0000" }, { "id": "441952", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "*Closing ticket*\r\n\r\nThe fix is present in SDK;\r\n\r\n{noformat}\r\n7.5.0.v20180922081022\r\n{noformat}", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2018-09-24T10:25:58.000+0000", "updated": "2018-09-24T10:25:58.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }