Skip to content
This repository was archived by the owner on Oct 19, 2023. It is now read-only.
This repository was archived by the owner on Oct 19, 2023. It is now read-only.

Cannot re-export a type when the '--isolatedModules' flag is provided #279

@JosephYeoh

Description

@JosephYeoh

My project uses Typescript and babel 7.
When running tsc its throwing this error:

error TS1205: Cannot re-export a type when the '--isolatedModules' flag is provided.
77 export { File, HubspotFile, HubspotImage }

I could turn off isolatedModules flag from my tsconfig.json but according to the caveat section of babel 7, it is recommended to keep the isolatedModules flag to true. Is there a workaround for this?

Fairly new to asking quesitons, please let me know if i'm being unclear.

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