Skip to content

"module": "nodenext" no longer infers "target": "esnext" in v7.0.0-dev.20260206.1 #2700

@abrahamguo

Description

@abrahamguo

Steps to reproduce

v7.0.0-dev.20260205.1 does not have this issue, but v7.0.0-dev.20260206.1 does.

tsconfig.json:

{ "compilerOptions": { "module": "nodenext" } }

TS:

new Set().difference;

Behavior with typescript@6.0

No errors

Behavior with tsgo

error TS2550: Property 'difference' does not exist on type 'Set<unknown>'. Do you need to change your target library? Try changing the 'lib' compiler option to 'esnext' or later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions