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

Upgrade Mith to support Deno 1.4.0 and std 0.69.0 #19

Open
tajpouria opened this issue Sep 16, 2020 · 0 comments
Open

Upgrade Mith to support Deno 1.4.0 and std 0.69.0 #19

tajpouria opened this issue Sep 16, 2020 · 0 comments

Comments

@tajpouria
Copy link

Issue description: ako-deno/negotiator#1

I beleaveThis also requires a number of Mith's dependency updates

error: TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
export { serve, Server, HTTPOptions, ServerRequest, Response } from 'https://deno.land/std@0.63.0/http/server.ts'
                        ~~~~~~~~~~~
    at https://deno.land/x/mith@v0.9.4/deps.ts:1:25

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
export { serve, Server, HTTPOptions, ServerRequest, Response } from 'https://deno.land/std@0.63.0/http/server.ts'
                                                    ~~~~~~~~
    at https://deno.land/x/mith@v0.9.4/deps.ts:1:53

TS1371 [ERROR]: This import is never used as a value and must use 'import type' because the 'importsNotUsedAsValues' is set to 'error'.
import { Response as DenoResponse, ServerRequest } from './deps.ts'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    at https://deno.land/x/mith@v0.9.4/response.ts:1:1

TS1371 [ERROR]: This import is never used as a value and must use 'import type' because the 'importsNotUsedAsValues' is set to 'error'.
import { ServerRequest} from './deps.ts';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    at https://deno.land/x/mith@v0.9.4/bodyParser.ts:1:1

TS1371 [ERROR]: This import is never used as a value and must use 'import type' because the 'importsNotUsedAsValues' is set to 'error'.
import { ServerRequest } from "./deps.ts"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    at https://deno.land/x/mith@v0.9.4/request.ts:1:1

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
export { Mith, Middleware, NextFunction } from './application.ts'
               ~~~~~~~~~~
    at https://deno.land/x/mith@v0.9.4/mod.ts:1:16

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
export { Mith, Middleware, NextFunction } from './application.ts'
                           ~~~~~~~~~~~~
    at https://deno.land/x/mith@v0.9.4/mod.ts:1:28

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
export { Response, IResponse } from './response.ts'
                   ~~~~~~~~~
    at https://deno.land/x/mith@v0.9.4/mod.ts:2:20

TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
export { Request, IRequest } from './request.ts'
                  ~~~~~~~~
    at https://deno.land/x/mith@v0.9.4/mod.ts:3:19

Found 9 errors.
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

No branches or pull requests

1 participant