liamtan28 / dactyl Goto Github PK
View Code? Open in Web Editor NEWWeb framework for Deno, built on top of Oak ๐ฆ
License: MIT License
Web framework for Deno, built on top of Oak ๐ฆ
License: MIT License
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.
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
tsconfig.json
{
"compilerOptions": {
"module": "esnext",
"target": "es2017",
"isolatedModules": false,
"experimentalDecorators": true,
"emitDecoratorMetadata": true
}
}
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.
When I running deno application using dactyl
, I see an error:
I check the version in https://deno.land/x/[email protected]/deps.ts
, version of std is [email protected]
but in the current version in master
branch is [email protected]
Line 14 in 0ccf4d8
I think you should upgrade the module in deno. Thank you very much.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.