Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type' #28

Open
helloworldless opened this issue Jan 11, 2022 · 1 comment · May be fixed by #29

Comments

@helloworldless
Copy link

It looks like since Deno 1.5, there was a breaking change which is causing an issue. I'm running Deno 1.17.2 and seeing this error:

error: TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
export { Doc } from "./util.ts";
         ~~~
    at https://denopkg.com/chiefbiiko/[email protected]/mod.ts:5:10

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
export { HeadersConfig, createHeaders } from "./create_headers.ts";
         ~~~~~~~~~~~~~
    at https://denopkg.com/chiefbiiko/[email protected]/client/mod.ts:4:10

Found 2 errors.

I found some solutions saying to create a tsconfig.json like this:

{
  "compilerOptions": {
    "isolatedModules": false,
  }
}

... but it did not solve the issue.

A bit more research turned up this saying that isolatedModules cannot be disabled: denoland/deno#12599

@Alxblsk Alxblsk linked a pull request Jan 14, 2022 that will close this issue
@Alxblsk
Copy link
Contributor

Alxblsk commented Jan 14, 2022

@chiefbiiko I've created a tiny PR to address this issue. Would be great if you can take a look.

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

Successfully merging a pull request may close this issue.

2 participants