Skip to content
This repository has been 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

Open
JosephYeoh opened this issue May 12, 2020 · 4 comments · May be fixed by #293
Open

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

JosephYeoh opened this issue May 12, 2020 · 4 comments · May be fixed by #293

Comments

@JosephYeoh
Copy link

JosephYeoh commented May 12, 2020

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.

@jamesrwaugh
Copy link

Installing it with npm install hubspot gives me the same. I had to also npm install @types/request-promise, but then I ran into this.

@LRNZ09
Copy link

LRNZ09 commented May 28, 2020

I'm also having the same exact problem, since with CRA the flag isolatedModules must be true.

@nunof07
Copy link

nunof07 commented Oct 28, 2020

Did you find any workaround?

I think one of the issues is that this library uses *.ts files for type declarations instead of *.d.ts (just tried a local patch).

@perrygovier perrygovier linked a pull request Dec 7, 2020 that will close this issue
@bradgreens
Copy link

Same issue here.

@pcothenet is it possible to merge #293?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants