After upgrading from Angular 7 to Angular 9, I am encountering numerous errors like the one below.
WARNING in C:\Users\DEV-SYS\Documents\GitHub\Angular-7\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.
I could delete the file to eliminate the errors, but I might need it later. How can I instruct the system not to compile it? I attempted adding the following to my tsconfig.app.json without success.
"exclude": [
"test.ts",
"**/*.spec.ts",
"environment.prod.ts"
]
What am I overlooking here?