Skip to content

Import incorrectly removed during transpilation #24551

Closed
@arciisine

Description

@arciisine

Currently I'm having an issue where I've imported a variable, and the import is being removed during transpilation. The reference still remains, but the code breaks at runtime because the import is missing.

TypeScript Version: 3.0.0-dev.201xxxxx, 2.9.1, 2.9.0-dev.20180406

I was able to pinpoint the issue to 2.9.0-dev.20180406 but I am having issues creating a small repro case.

Search Terms:
Import missing reference

Code
I'm having trouble creating a contained repro, but the issue is currently occurring when an imported reference is used only in super clause of a constructor.

Expected behavior:
The import for an imported reference should exist after transpilation.

Actual behavior:
The import is removed during transpillation.

Playground Link:

Related Issues:

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions