Description

When you run the TypeScript analysis in the analysis log you may receive warnings as shown below:

Information MODULMSG ; Job execution Starting processing of file 'C:\WEBI\AipNode\data\deploy\Test_code\main_sources\frontend\src\environment.ts'C:\WEBI\AipNode\data\deploy\Test_code\main_sources\frontend\src\environment.ts
Information MODULMSG ; Job execution Starting processing of file 'C:\WEBI\AipNode\data\deploy\Test_code\main_sources\frontend\src\environment.ts'C:\WEBI\AipNode\data\deploy\Test_code\main_sources\frontend\src\environment.ts
Information MODULMSG ; Job execution [com.castsoftware.typescript] Light analysis of file C:\WEBI\AipNode\data\deploy\Test_code\main_sources\frontend\src\environment.ts
Information MODULMSG ; Job execution [com.castsoftware.typescript] Deep analysis of file C:\WEBI\AipNode\data\deploy\Test_code\main_sources\frontend\src\environment.ts
Warning MODULMSG ; Job execution [com.castsoftware.typescript] Loaded environment file is not declared for production code: C:\WEBI\AipNode\data\deploy\Test_code\main_sources\frontend\src\environment.ts
Warning MODULMSG ; Job execution [com.castsoftware.typescript] Loaded environment file is not declared for production code: C:\WEBI\AipNode\data\deploy\Test_code\main_sources\frontend\src\environment.ts
Warning MODULMSG ; Job execution [com.castsoftware.typescript] Loaded environment file is not declared for production code: C:\WEBI\AipNode\data\deploy\Test_code\main_sources\frontend\src\environment.ts
Warning MODULMSG ; Job execution [com.castsoftware.typescript] Loaded environment file is not declared for production code: C:\WEBI\AipNode\data\deploy\Test_code\main_sources\frontend\src\environment.ts

Observed in CAST Extension
Release
Yes/No
1.1(tick)
1.0(tick)


*Observed on RDBMS
RDBMS
Yes/No
CSS2(tick)
CSS3(tick)
Step by Step Scenario
  1. Manage Typescript and Angular extension in servman.
  2. Create a user-defined UA
  3. Run the analysis on the Typescript source code.
Impact on Analysis Results and Dashboard

All the Typescript objects will be saved in KB. There is no impact due to this warning.

Action Plan

From the analysis log, you can see that the envrionment.ts file has been analyzed and that the objects are saved. 

The warnings are due to the fact that, when you compile the code, angular generates environment.ts file which loads the environment.

Since there is also one more environment.ts file in the source code, the warning is just to alert the user.

There is no impact due to this warning.

You can check the objects of the user's envrionment.ts file on Enlighten.

Notes/comments

Ticket # 22635

Related Pages