My objective is a working Angular v10 project, using .flat()
on arrays. Our team recently upgraded our Angular project to version 10. The project now, based on the Angular CLI, has the following files in the root:
- tsconfig.base.json
- tsconfig.json
Everything works, but our IDE (vs code), gives us the warning:
Property 'flat' does not exist on type 'string[][]'.ts(2339)
According to this answer on SO, adding es2019
to the lib property should fix the issue. But I have added "es2019" to both tsconfig.base.json and tsconfig.json to no help.