Skip to content

tsconfig seems to ignore lib option #1278

@waterplea

Description

@waterplea

Hi there.

I've created an Angular stackblitz and wanted to use Array.prototype.includes method, but even though blitz gets created with es2018 in lib, even changing target to es2018 doesn't help, TypeScript complains about includes not being available for arrays. It compiles, but the error message is there :(

https://stackblitz.com/edit/angular-array-includes?file=src%2Fapp%2Fapp.component.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions