Skip to content

Cannot re-export global symbol - circular definition of import alias #3514

@mprobst

Description

@mprobst

Assuming these two files:

a.d.ts:

declare class X {}

b.ts:

/// <reference path="a.d.ts"/>
export {X};

Gives this error:

b.ts (2,9): Circular definition of import alias 'X'.

The use case for this is moving from internal modules to external modules by re-exporting symbols.

/cc @mhegazy & @rbuckton

Metadata

Metadata

Assignees

No one assigned

    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