{ "id": "172161", "key": "TIMOB-26351", "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": [ { "id": "20183", "description": "", "name": "Release 7.4.0", "archived": false, "released": true, "releaseDate": "2018-09-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-09-05T16:42:10.000+0000", "created": "2018-09-02T15:03:29.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "20183", "description": "", "name": "Release 7.4.0", "archived": false, "released": true, "releaseDate": "2018-09-17" }, { "id": "20115", "name": "Release 7.3.0", "archived": false, "released": true, "releaseDate": "2018-08-17" } ], "issuelinks": [], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2018-09-05T18:53:39.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": "13103", "name": "CLI", "description": "Node-based command line interface" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "When using SDK 7.4.0, the following error occurs when building kitchensink-v2 to a device\r\n{code}\r\n[ERROR] ~/kitchensink-v2/Resources/iphone/logger.js: Cannot read property 'isIfStatement' of null\r\n{code}\r\nIt looks like a [known Babel issue|https://github.com/babel/minify/issues/850], but is there a way around it?\r\n\r\n\r\nh5.Steps to reproduce\r\n\r\n# Get the latest kitchensink-v2 https://github.com/appcelerator/kitchensink-v2\r\n# Build for iOS device", "attachment": [], "flagged": false, "summary": "iOS CLI (Babel): Cannot read property 'isIfStatement' of null", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "441280", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~hknoechel] You should be able to add {{--skip-js-minify}} to prevent this. Is it only 7.4.0 onwards? We haven't bumped the minify version for a while AFAIK", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-09-03T11:35:54.000+0000", "updated": "2018-09-03T11:35:54.000+0000" }, { "id": "441282", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Only noticed in 7.4.0 so far, yep. But trying it right now, it works again. But I bumped by Node version from 8 to 9 yesterday, maybe that helped.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-09-03T11:45:41.000+0000", "updated": "2018-09-03T11:45:41.000+0000" }, { "id": "441285", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "I'm hitting this in 7.3.0 also. Looks to be because we moved from babel-preset-babili to babel-preset-minify. \r\n\r\nWe can take the prerelease version of babel-preset-minify with the fix or we roll back and try and find a version without the bug. \r\n\r\nPersonally I vote for the prerelease because babel-preset-minify has seemed rather unstable since we've been using it so I think we need to be proactive in testing the betas etc.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-09-03T14:55:51.000+0000", "updated": "2018-09-03T14:55:51.000+0000" }, { "id": "441339", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "PR: https://github.com/appcelerator/node-titanium-sdk/pull/45\r\n\r\nI went for the \"safer\" option of rolling back to 0.3.0 given that I think this should land in 7.4.0", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-09-05T10:39:21.000+0000", "updated": "2018-09-05T10:41:02.000+0000" }, { "id": "441343", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Master: https://github.com/appcelerator/titanium_mobile/pull/10308\r\n7_4_X: https://github.com/appcelerator/titanium_mobile/pull/10309", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-09-05T16:07:07.000+0000", "updated": "2018-09-05T16:07:07.000+0000" }, { "id": "441360", "author": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix on 7.4.0.v20180905090826. Kitchensink app built successfully.\r\nClosing.\r\n{code}\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.13.6\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 17179869184\r\n\r\nNode.js\r\n Node.js Version = 8.9.1\r\n npm Version = 5.5.1\r\n\r\nTitanium CLI\r\n CLI Version = 5.1.1\r\n\r\nTitanium SDK\r\nSdk Version = 7.4.0.v20180905090826\r\n\r\nDevice\r\niphone 6s with ios 10\r\n{code}", "updateAuthor": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-09-05T18:53:29.000+0000", "updated": "2018-09-05T18:53:29.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }