I am encountering TypeScript errors in my Visual Studio build for an Aurelia project within a .NET Core project. The errors include 'Build:Cannot find name 'RequestInit'', 'Build:Cannot find name 'Request'', and 'Build:Cannot find name 'Response''.
https://i.stack.imgur.com/miLjr.png
After trying to resolve these errors by installing the package @types/whatwg-fetch, I now face issues with Aurelia CLI build as it throws errors like 'Duplicate identifier 'Headers'' and 'Duplicate identifier 'Request''. These conflicts seem to stem from whatwg-fetch and lib.dom.d.ts.
Despite updating tsconfig, the typings are not picked up correctly by Visual Studio, leading to conflicting builds. Adding the lib.dom.d.ts file directly to the files array in tsconfig resolves the errors, but I seek a more optimal solution.