Coder Social home page Coder Social logo

dactyl's People

Contributors

coroo avatar kuzivany avatar lezsakdomi avatar liamtan-thoughtworks avatar liamtan28 avatar michael-spengler avatar rikhoffbauer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dactyl's Issues

Dactyl is using old std version

When running a basic dactyl application there's errors:

  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

Found 2 errors.

Versions

deno 1.2.0
v8 8.5.216
typescript 3.9.2

[email protected] is not compatible with 1.2.0 deno version.

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

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.

New Version

Hi Liam, thanks for your amazing work with this Deno package. When do you think you will release a new version? I can help you to maintenance it.

TS2349 when trying to run the example

When trying to run the specified example (i.e. deno run --allow-net --config=tsconfig.json https://deno.land/x/dactyl/example/index.ts), I get:

error: TS2349 [ERROR]: This expression is not callable.
  Each member of the union type '{ <P extends Record<string | number, string | undefined> = Record<string | number, string | undefined>, S extends Record<string | number | symbol, any> = Record<string, any>>(name: string, path: stri
ng, ...middleware: RouterMiddleware<...>[]): Router<...>; <P extends Record<...> = Record<...>, S extends Record<...> ...' has signatures, but none of those signatures are compatible with each other.
      this[route.requestMethod](
      ~~~~~~~~~~~~~~~~~~~~~~~~~
    at https://deno.land/x/dactyl/Router.ts:74:7

deno --version says:

deno 1.0.2
v8 8.4.300
typescript 3.9.2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.