question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

Expected 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

  1. Update to Nx 8.5.0
  2. serve the poject
  3. 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:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
aegkalukcommented, Feb 21, 2020

tsconfig.app.json

{
  "extends": "../tsconfig.json",
  "compilerOptions": {
    "outDir": "../out-tsc/app",
    "types": []
  },
  "include": [
    "src/**/*.ts"
  ],
  "exclude": [
    "test.ts",
    "**/*.spec.ts"
  ]
}
2reactions
mehrad-rafighcommented, Sep 18, 2019

You’re welcome 😃 Would you please close the issue, since it is not related to NX?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found