dactyl icon indicating copy to clipboard operation
dactyl copied to clipboard

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.

Open g8up opened this issue 4 years ago • 0 comments

deno --version deno 1.9.0 (release, x86_64-pc-windows-msvc) v8 9.1.269.5 typescript 4.2.2

Run the officail example

deno run --allow-net --config=tsconfig.json https://deno.land/x/dactyl/example/index.ts

  • my tsconfig.json
{
  "compilerOptions": {
    "module": "esnext",
    "target": "es2017",
    "isolatedModules": false,
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true
  }
}
  • error

Check https://deno.land/x/dactyl/example/index.ts
Unsupported compiler options in "E:\xxx\deno\tsconfig.json".
  The following options were ignored:
    isolatedModules, module, target
error: TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'.
  Type 'URL' is not assignable to type 'string'.
  return new URL(url).pathname
                 ~~~
    at https://deno.land/[email protected]/path/win32.ts:911:18

TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'.
  Type 'URL' is not assignable to type 'string'.
  return new URL(url).pathname;
                 ~~~
    at https://deno.land/[email protected]/path/posix.ts:433:18

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
  Response,
  ~~~~~~~~
    at https://deno.land/x/[email protected]/deps.ts:9:3

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
  Cookies,
  ~~~~~~~
    at https://deno.land/x/[email protected]/deps.ts:20:3

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
  Cookie,
  ~~~~~~
    at https://deno.land/x/[email protected]/deps.ts:21:3

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
  ApplicationOptions,
  ~~~~~~~~~~~~~~~~~~
    at https://deno.land/x/[email protected]/mod.ts:5:3

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
  ListenOptions,
  ~~~~~~~~~~~~~
    at https://deno.land/x/[email protected]/mod.ts:6:3

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
  ListenOptionsBase,
  ~~~~~~~~~~~~~~~~~
    at https://deno.land/x/[email protected]/mod.ts:7:3

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
  ListenOptionsTls,
  ~~~~~~~~~~~~~~~~
    at https://deno.land/x/[email protected]/mod.ts:8:3

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
  State,
  ~~~~~
    at https://deno.land/x/[email protected]/mod.ts:9:3

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
  CookiesGetOptions,
  ~~~~~~~~~~~~~~~~~
    at https://deno.land/x/[email protected]/mod.ts:14:3

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
  CookiesSetDeleteOptions,
  ~~~~~~~~~~~~~~~~~~~~~~~
    at https://deno.land/x/[email protected]/mod.ts:15:3

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
export { compose as composeMiddleware, Middleware } from "./middleware.ts";
                                       ~~~~~~~~~~
    at https://deno.land/x/[email protected]/mod.ts:18:40

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
  Body,
  ~~~~
    at https://deno.land/x/[email protected]/mod.ts:20:3

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
  BodyOptions,
  ~~~~~~~~~~~
    at https://deno.land/x/[email protected]/mod.ts:21:3

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
  BodyOptionsAsReader,
  ~~~~~~~~~~~~~~~~~~~
    at https://deno.land/x/[email protected]/mod.ts:22:3

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
  BodyReader,
  ~~~~~~~~~~
    at https://deno.land/x/[email protected]/mod.ts:23:3

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
  BodyType,
  ~~~~~~~~
    at https://deno.land/x/[email protected]/mod.ts:24:3

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
  RouteParams,
  ~~~~~~~~~~~
    at https://deno.land/x/[email protected]/mod.ts:29:3

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
  Route,
  ~~~~~
    at https://deno.land/x/[email protected]/mod.ts:30:3

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
  RouterContext,
  ~~~~~~~~~~~~~
    at https://deno.land/x/[email protected]/mod.ts:32:3

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
  RouterMiddleware,
  ~~~~~~~~~~~~~~~~
    at https://deno.land/x/[email protected]/mod.ts:33:3

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
export { HTTPMethods } from "./types.ts";
         ~~~~~~~~~~~
    at https://deno.land/x/[email protected]/mod.ts:36:10

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
  RouterContext,
  ~~~~~~~~~~~~~
    at https://deno.land/x/[email protected]/deps.ts:6:3

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
  Middleware,
  ~~~~~~~~~~
    at https://deno.land/x/[email protected]/deps.ts:9:3

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
  RouterContext,
  ~~~~~~~~~~~~~
    at https://deno.land/x/[email protected]/example/deps.ts:28:3

Found 26 errors.

g8up avatar Apr 26 '21 04:04 g8up