[TIMOB-28200] Angular: Project created from template fails build with type errors
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2020-10-29T12:33:50.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 9.3.0, Release 9.2.2 |
| Components | Tooling |
| Labels | n/a |
| Reporter | Jan Vennemann |
| Assignee | Jan Vennemann |
| Created | 2020-10-15T18:08:14.000+0000 |
| Updated | 2020-10-29T12:33:50.000+0000 |
Description
*Steps to reproduce the behavior*
Create new Angular project with
Create new Angular project with appc new --ng
Build project
*Actual behavior* Build fails with the following error:
[INFO] WEBPACK ERROR Failed to compile with 1 errors8:05:23 PM
[INFO] WEBPACK
[INFO] WEBPACK error
[INFO] WEBPACK [INFO] WEBPACK test-angular/node_modules/zone.js/dist/zone.js.d.ts:600:13 - error TS2403: Subsequent variable declar
ations must have the same type. Variable 'global' must be of type 'Global', but here has type 'Global'.
[INFO] WEBPACK
[INFO] WEBPACK 600 declare var global: NodeJS.Global;
[INFO] WEBPACK ~~~~~~
[INFO] WEBPACK
[INFO] WEBPACK test-angular/node_modules/@types/titanium/globals.d.ts:57:13
[INFO] WEBPACK 57 declare var global: Titanium.Global;
[INFO] WEBPACK ~~~~~~
[INFO] WEBPACK 'global' was also declared here.
*Expected behavior*
Build without error
FR: *Failed* using SDK v9.3.0.v20201019143537 [~jvennemann] *Test Environment* SDK Ver: v9.3.0.v20201019143537 OS Ver: 10.15.6 Appc NPM: 5.0.0 Appc CLI: 8.1.1 Node Ver: 12.19.0 NPM Ver: 6.13.6 Java Ver: 1.8.0_162 The following error is seen:
Getting a failure on Windows too with the following error:
*Test Environment*Name = Microsoft Windows 10 Pro Version = 10.0.18363. All Rights Reserved. Architecture = 64bit # CPUs = 16 Memory = 63.9GB Node.js Node.js Version = 12.16.1 npm Version = 6.13.4 Appcelerator CLI Installer = 5.0.0 Core Package = 8.1.1 Titanium CLI CLI Version = 5.2.5 node-appc Version = 1.1.1 Java Development Kit Version = 10.0.1_10 NDK Version = 20.1.5948944PR: https://github.com/appcelerator/titanium_mobile/pull/12199
FR Passed, waiting on Jenkins build.
*Closing ticket*. Fix verified in SDK version
9.3.0.v20201028071437, and9.2.2.v20201028132228. *Test and other information can be found at:* https://github.com/appcelerator/titanium_mobile/pull/12199