{ "id": "172681", "key": "TIMOB-26611", "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": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2018-11-29T00:38:52.000+0000", "created": "2018-11-29T00:22:23.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-11-29T00:38:52.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": [], "description": "I encountered an interesting error when attempting to build a test case:\r\n\r\n{code:js}\r\nconst win = Ti.UI.createWindow({ backgroundColor: 'gray', layout: 'vertical' });\r\nconst btn_js = Ti.UI.createButton({ title: 'JAVASCRIPT' });\r\nconst btn_native = Ti.UI.createButton({ title: 'NATIVE' });\r\n\r\nbtn_js.addEventListener('click', (e) => {\r\n const object = {};\r\n console.log(object.test.crash);\r\n});\r\n\r\nbtn_native.addEventListener('click', (e) => {\r\n Ti.Geolocation.accuracy = {};\r\n});\r\n\r\nwin.add([ Ti.UI.createView({ height: 80 }), btn_js, btn_native ]);\r\nwin.open();\r\n\r\n/*var worker = require('ti.worker');\r\n\r\nvar window = Ti.UI.createWindow({\r\n backgroundColor: 'white',\r\n});\r\n\r\nvar view = Ti.UI.createView({\r\n backgroundColor: 'white',\r\n top: 20\r\n});\r\n\r\nvar label1 = Ti.UI.createLabel({\r\n text: 'Calculating prime',\r\n width: Ti.UI.FILL,\r\n height: Ti.UI.FIT,\r\n textAlign: 'center',\r\n color: 'red',\r\n top: 10\r\n});\r\n\r\nvar label2 = Ti.UI.createLabel({\r\n text: 'Calculating prime',\r\n width: Ti.UI.FILL,\r\n height: Ti.UI.FIT,\r\n textAlign: 'center',\r\n color: 'green',\r\n top: 40\r\n});\r\n\r\nvar label3 = Ti.UI.createLabel({\r\n text: 'Calculating prime',\r\n width: Ti.UI.FILL,\r\n height: Ti.UI.FIT,\r\n textAlign: 'center',\r\n color: 'blue',\r\n top: 70\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n title: 'Terminate',\r\n width: Ti.UI.FIT,\r\n height: Ti.UI.FIT,\r\n top: 100\r\n});\r\n\r\nwindow.add(view);\r\nview.add(label1);\r\nview.add(label2);\r\nview.add(label3);\r\nview.add(button);\r\nwindow.open();\r\n\r\nvar thread1 = worker.createWorker('prime.js');\r\n\r\nthread1.addEventListener('message', function(event) {\r\n label1.text = event.data;\r\n});\r\n\r\n/*\r\nvar thread2 = worker.createWorker('prime.js');\r\n\r\nthread2.addEventListener('message', function(event) {\r\n label2.text = event.data;\r\n});\r\n\r\nvar thread3 = worker.createWorker('prime.js');\r\n\r\nthread3.addEventListener('message', function(event) {\r\n label3.text = event.data;\r\n});\r\n\r\nthread1.addEventListener('terminated', function() {\r\n label1.text = 'Terminated';\r\n});\r\n\r\nthread2.addEventListener('terminated', function() {\r\n label2.text = 'Terminated';\r\n});\r\n\r\nthread3.addEventListener('terminated', function() {\r\n label3.text = 'Terminated';\r\n});\r\n\r\nbutton.addEventListener('click', function() {\r\n thread1.terminate();\r\n thread2.terminate();\r\n thread3.terminate();\r\n});\r\n*/\r\n{code}\r\n{code}\r\n[INFO] Processing JavaScript files\r\n[ERROR] Cannot read property 'isPure' of null\r\n{code}\r\n\r\nWhat's interesting is this only occurs when building to a device...\r\n{code}\r\nappc run -p android -T device\r\n{code}\r\n\r\nAnd resolves itself when I comment out the {{opts.minify}} condition block in {{jsanalyze.js}}", "attachment": [], "flagged": false, "summary": "Babel minify can error and prevent application from building", "creator": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1095, "state": "closed", "name": "2018 Sprint 24", "startDate": "2018-11-19T05:35:58.310Z", "endDate": "2018-12-03T05:35:00.000Z", "completeDate": "2018-12-03T16:28:57.549Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "444025", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Turns out this issue has been resolved by updating {{babel-minify}} and {{node-titanium-sdk}} has already been updated to resolve this issue.\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/commit/847fbdfb3bc723e7b535addbd1eea344bfdf1f61", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-11-29T00:38:43.000+0000", "updated": "2018-11-29T00:38:43.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }