Skip to content

3.7.5 => 3.8.3 introduces breaking change(and shouldn't) #37416

Closed
@rmainwork

Description

@rmainwork

TypeScript Version: 3.8.3

Search Terms:

  1. Option 'noEmit' cannot be specified with option 'incremental'.
  2. typescript incremental noEmit
  3. tsc noEmit incremental

Code

{
  "incremental": true
}
tsc --noEmit

Expected behavior:

The typescript project should compile successfully (it does under 3.7.5) since 3.7.5 to 3.8.3 is not a semver breaking change the two should be backwards compatible, but aren't. https://semver.org/spec/v2.0.0.html#summary

Actual behavior:

tsconfig.json:15:5 - error TS5053: Option 'noEmit' cannot be specified with option 'incremental'.

15     "incremental": true,
       ~~~~~~~~~~~~~


Found 1 error.

Playground Link:

n/a (typescript playground doesn't have the option to configure the tsc command or set the incremental option in tsconfig.json

Related Issues:
n/a

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