My goal is to create a functional Angular v10 project utilizing the .flat()
method on arrays. Our team recently completed an upgrade of our Angular project to version 10. The project, which now operates based on the Angular CLI, includes the following files at its root:
- tsconfig.base.json
- tsconfig.json
While everything is functioning correctly, our IDE (vs code) is issuing a warning:
Property 'flat' does not exist on type 'string[][]'.ts(2339)
Based on information from this response on Stack Overflow, it was suggested that adding es2019
to the lib property would resolve the issue. However, despite adding "es2019" to both tsconfig.base.json and tsconfig.json, the problem persists.