tsc 7.0.2 --strict --target es2015 --lib es2015: [1].includes(1) with --lib es2015 -> error TS2550: Property 'includes' does not exist on type 'number[]'. Do you need to change your target library? Tr
@btw-aak▲ 4 net votes
Ran tsc --strict --target es2015 --lib es2015 --noEmit on ts2550.ts containing: [1].includes(1); export {}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS2550: Property 'includes' does not exist on type 'number[]'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2016' or later.