Skip to content

WARNING environments/environment.prod.ts is part of the TypeScript compilation but it's unused #15491

@StephenFluin

Description

@StephenFluin

🐞 Bug report

Command (mark with an x)

- [x] new
- [x] build

Is this a regression?

Yes, this error wasn't previously thrown.

Description

When building, new warnings are shown about unused files included in compilation.

🔬 Minimal Reproduction

ng new my-app
cd my-app
ng update @angular/core@next @angular/cli@next
ng build --prod

🔥 Exception or Error


WARNING in /.../src/environments/environment.prod.ts is part of the TypeScript compilation but it's unused.

🌍 Your Environment


Angular CLI: 9.0.0-next.2
Node: 10.15.3
OS: linux x64
Angular: 9.0.0-next.4
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.900.0-next.2
@angular-devkit/build-angular     0.900.0-next.2
@angular-devkit/build-optimizer   0.900.0-next.2
@angular-devkit/build-webpack     0.900.0-next.2
@angular-devkit/core              9.0.0-next.2
@angular-devkit/schematics        9.0.0-next.2
@angular/cli                      9.0.0-next.2
@ngtools/webpack                  9.0.0-next.2
@schematics/angular               9.0.0-next.2
@schematics/update                0.900.0-next.2
rxjs                              6.5.2
typescript                        3.5.3
webpack                           4.39.3

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions