WARNING environments/environment.prod.ts is part of the TypeScript compilation but it's unused
See original GitHub issueExpected Behavior
remove warning during compile
Current Behavior
[WDS] Warnings while compiling.
../src/environments/environment.prod.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
Failure Information (for bugs)
Steps to Reproduce
- Update to Nx 8.5.0
- serve the poject
- Observe the following warning:
../src/environments/environment.prod.ts is part of the TypeScript compilation but it's unused. Add only entry points to the 'files' or 'include' properties in your tsconfig.
Context
- discovered issue when attempting to update to 8.5.0
Failure Logs
[WDS] Warnings while compiling.
../src/environments/environment.prod.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
Other
I removed enableIvy: true from tsconfig.app.json then the warning disappeared
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
How to get rid of the warning .ts file is part of the TypeScript ...
module.ts is part of the TypeScript compilation but it's unused. Add only entry points to the 'files' or 'include' properties in your tsconfig....
Read more >Since IVY WARNING "environment.prod.ts is part of the ...
ts is part of the TypeScript compilation but it's unused. Add only entry points to the 'files' or 'include' properties in your tsconfig....
Read more >xxx.ts is part of the TypeScript compilation but it's unused.
WARNING in xxx.ts is part of the TypeScript compilation but it's unused. Add only entry points to the 'files' or 'include' properties in ......
Read more >angular/angular - Gitter
WARNING in /Users/vladislav.sharikov/tmp/test-polyfills/src/environments/environment.prod.ts is part of the TypeScript compilation but it's unused.
Read more >How to get rid of the warning .ts file is part of the TypeScript ...
... .ts file is part of the TypeScript compilation but it's unused-angular.js. ... The test.ts and environments.prod.ts files are a means to an...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
tsconfig.app.json
You’re welcome 😃 Would you please close the issue, since it is not related to NX?