Skip to content

TSX @ts-ignore comments no longer suppressing errors in TypeScript 3.9 #37738

Closed
@brieb

Description

@brieb

TypeScript Version: 3.9.0-beta and 3.9.0-dev.20200330

Search Terms:

ts-ignore 3.9 tsx @ts-ignore

Code

      {/*
      // @ts-ignore */}
      <MyOtherComponent prop={123} />

Expected behavior:

Error suppressed when running tsc (TS 3.8 behavior)

Actual behavior:

Error emitted when running tsc

Repro Repo Link:

https://github.com/brieb/ts-39-issue-ts-ignore-tsx

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: JSX/TSXRelates to the JSX parser and emitterFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions