{ "id": "175651", "key": "TIMOB-28200", "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": "21052", "description": "", "name": "Release 9.3.0", "archived": false, "released": true, "releaseDate": "2020-12-14" }, { "id": "21129", "name": "Release 9.2.2", "archived": false, "released": true, "releaseDate": "2020-10-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-10-29T12:33:50.000+0000", "created": "2020-10-15T18:08:14.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2020-10-29T12:33:50.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": "10207", "name": "Tooling" } ], "description": "*Steps to reproduce the behavior*\r\n\r\n# Create new Angular project with {{appc new --ng}}\r\n# Build project\r\n\r\n*Actual behavior*\r\n\r\nBuild fails with the following error:\r\n\r\n{code}\r\n[INFO] WEBPACK ERROR Failed to compile with 1 errors8:05:23 PM\r\n[INFO] WEBPACK \r\n[INFO] WEBPACK error \r\n[INFO] WEBPACK [INFO] WEBPACK test-angular/node_modules/zone.js/dist/zone.js.d.ts:600:13 - error TS2403: Subsequent variable declar\r\nations must have the same type. Variable 'global' must be of type 'Global', but here has type 'Global'.\r\n[INFO] WEBPACK \r\n[INFO] WEBPACK 600 declare var global: NodeJS.Global;\r\n[INFO] WEBPACK ~~~~~~\r\n[INFO] WEBPACK \r\n[INFO] WEBPACK test-angular/node_modules/@types/titanium/globals.d.ts:57:13\r\n[INFO] WEBPACK 57 declare var global: Titanium.Global;\r\n[INFO] WEBPACK ~~~~~~\r\n[INFO] WEBPACK 'global' was also declared here.\r\n{code}\r\n\r\n*Expected behavior*\r\nBuild without error", "attachment": [], "flagged": false, "summary": "Angular: Project created from template fails build with type errors", "creator": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 1208, "state": "closed", "name": "2020 Sprint 21", "startDate": "2020-10-12T16:34:00.000Z", "endDate": "2020-10-23T16:34:00.000Z", "completeDate": "2020-10-23T02:32:43.674Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "457292", "author": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "body": "FR: *Failed* using SDK v9.3.0.v20201019143537 [~jvennemann]\r\n\r\n*Test Environment*\r\nSDK Ver: v9.3.0.v20201019143537\r\nOS Ver: 10.15.6\r\nAppc NPM: 5.0.0\r\nAppc CLI: 8.1.1\r\nNode Ver: 12.19.0\r\nNPM Ver: 6.13.6\r\nJava Ver: 1.8.0_162\r\n\r\nThe following error is seen:\r\n\r\n{code}\r\n[INFO] WEBPACK ERROR Failed to compile with 1 errors2:16:52 PM\r\n[INFO] WEBPACK \r\n[INFO] WEBPACK error \r\n[INFO] WEBPACK \r\n[INFO] WEBPACK ../TIMOB-28200-4/node_modules/zone.js/zone.d.ts:600:21 - error TS2503: Cannot find namespace 'NodeJS'.\r\n[INFO] WEBPACK \r\n[INFO] WEBPACK 600 declare var global: NodeJS.Global;\r\n{code}\r\n", "updateAuthor": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "created": "2020-10-21T13:17:28.000+0000", "updated": "2020-10-21T13:17:28.000+0000" }, { "id": "457293", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Getting a failure on Windows too with the following error:\r\n\r\n{code:java}\r\nINFO] WEBPACK ERROR Failed to compile with 1 errors1:55:19 PM\r\n[INFO] WEBPACK\r\n[INFO] WEBPACK error\r\n[INFO] WEBPACK\r\n[INFO] WEBPACK ../../../../Desktop/anewan/node_modules/zone.js/zone.d.ts:600:21 - error TS2503: Cannot find namespace 'NodeJS'.\r\n[INFO] WEBPACK\r\n[INFO] WEBPACK 600 declare var global: NodeJS.Global;\r\n[INFO] WEBPACK ~~~~~~\r\n[ERROR] Error: Webpack compilation failed.\r\nat WebpackService.handler (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\9.2.2.v20201015143748\\cli\\lib\\webpack\\service.js:240:20)\r\nat WebpackService.emit (events.js:311:20)\r\nat Subscription. (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\9.2.2.v20201015143748\\cli\\lib\\webpack\\service.js:287:10)\r\nat Subscription.emit (events.js:311:20)\r\nat EventEmitter. (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\9.2.2.v20201015143748\\cli\\lib\\webpack\\appcd.js:50:19)\r\nat EventEmitter.emit (events.js:311:20)\r\nat Object.handler (C:\\Users\\APPC\\.appcelerator\\install\\8.1.1\\package\\node_modules\\appcd-client\\dist\\client.js:313:19)\r\nat WebSocket. (C:\\Users\\APPC\\.appcelerator\\install\\8.1.1\\package\\node_modules\\appcd-client\\dist\\client.js:126:31)\r\nat WebSocket.emit (events.js:311:20)\r\nat Receiver.receiverOnMessage (C:\\Users\\APPC\\.appcelerator\\install\\8.1.1\\package\\node_modules\\appcd-client\\node_modules\\ws\\lib\\websocket.js:800:20)\r\n{code}\r\n\r\n*Test Environment*\r\n{code:java}\r\n Name = Microsoft Windows 10 Pro\r\n Version = 10.0.18363. All Rights Reserved.\r\n Architecture = 64bit\r\n # CPUs = 16\r\n Memory = 63.9GB\r\n\r\nNode.js\r\n Node.js Version = 12.16.1\r\n npm Version = 6.13.4\r\n\r\nAppcelerator CLI\r\n Installer = 5.0.0\r\n Core Package = 8.1.1\r\n\r\nTitanium CLI\r\n CLI Version = 5.2.5\r\n node-appc Version = 1.1.1\r\n\r\nJava Development Kit\r\n Version = 10.0.1_10\r\n\r\nNDK Version = 20.1.5948944\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-21T13:27:16.000+0000", "updated": "2020-10-21T13:29:33.000+0000" }, { "id": "457294", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/12199", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-10-21T14:19:15.000+0000", "updated": "2020-10-21T14:19:15.000+0000" }, { "id": "457310", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed, waiting on Jenkins build. ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-22T16:29:18.000+0000", "updated": "2020-10-22T16:29:18.000+0000" }, { "id": "457388", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket*. Fix verified in SDK version {{9.3.0.v20201028071437}}, and {{9.2.2.v20201028132228}}.\r\n\r\n*Test and other information can be found at:*\r\nhttps://github.com/appcelerator/titanium_mobile/pull/12199", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-29T12:33:40.000+0000", "updated": "2020-10-29T12:33:40.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }