-
Notifications
You must be signed in to change notification settings - Fork 242
Closed
Description
Here's the latest from new version of Deno:
error: TS2345 [ERROR]: Argument of type 'import("https://deno.land/x/oak@v10.2.1/middleware.ts").Middleware<Record<string, any>, import("https://deno.land/x/oak@v10.2.1/context.ts").Context<Record<string, any>, Record<string, any>>>' is not assignable to parameter of type 'import("https://deno.land/x/oak@v10.4.0/middleware.ts").Middleware<Record<string, any>, import("https://deno.land/x/oak@v10.4.0/context.ts").Context<Record<string, any>, Record<string, any>>>'.
Types of parameters 'context' and 'context' are incompatible.
Type 'import("https://deno.land/x/oak@v10.4.0/context.ts").Context<Record<string, any>, Record<string, any>>' is not assignable to type 'import("https://deno.land/x/oak@v10.2.1/context.ts").Context<Record<string, any>, Record<string, any>>'.
Types of property 'app' are incompatible.
Type 'import("https://deno.land/x/oak@v10.4.0/application.ts").Application<Record<string, any>>' is not assignable to type 'import("https://deno.land/x/oak@v10.2.1/application.ts").Application<Record<string, any>>'.
Property '#contextState' in type 'Application' refers to a different member that cannot be accessed from within type 'Application'.
app.use(searches.routes());
~~~~~~~~~~~~~~~~~
at file:///home/ettinger/www/grazily.com/grazily-api/index.ts:32:9
TS2345 [ERROR]: Argument of type 'import("https://deno.land/x/oak@v10.2.1/middleware.ts").Middleware<Record<string, any>, import("https://deno.land/x/oak@v10.2.1/context.ts").Context<Record<string, any>, Record<string, any>>>' is not assignable to parameter of type 'import("https://deno.land/x/oak@v10.4.0/middleware.ts").Middleware<Record<string, any>, import("https://deno.land/x/oak@v10.4.0/context.ts").Context<Record<string, any>, Record<string, any>>>'.
app.use(searches.allowedMethods());
~~~~~~~~~~~~~~~~~~~~~~~~~
at file:///home/ettinger/www/grazily.com/grazily-api/index.ts:33:9
TS2345 [ERROR]: Argument of type 'import("https://deno.land/x/oak@v10.2.1/middleware.ts").Middleware<Record<string, any>, import("https://deno.land/x/oak@v10.2.1/context.ts").Context<Record<string, any>, Record<string, any>>>' is not assignable to parameter of type 'import("https://deno.land/x/oak@v10.4.0/middleware.ts").Middleware<Record<string, any>, import("https://deno.land/x/oak@v10.4.0/context.ts").Context<Record<string, any>, Record<string, any>>>'.
app.use(users.routes());
~~~~~~~~~~~~~~
at file:///home/ettinger/www/grazily.com/grazily-api/index.ts:34:9
TS2345 [ERROR]: Argument of type 'import("https://deno.land/x/oak@v10.2.1/middleware.ts").Middleware<Record<string, any>, import("https://deno.land/x/oak@v10.2.1/context.ts").Context<Record<string, any>, Record<string, any>>>' is not assignable to parameter of type 'import("https://deno.land/x/oak@v10.4.0/middleware.ts").Middleware<Record<string, any>, import("https://deno.land/x/oak@v10.4.0/context.ts").Context<Record<string, any>, Record<string, any>>>'.
app.use(users.allowedMethods());
~~~~~~~~~~~~~~~~~~~~~~
at file:///home/ettinger/www/grazily.com/grazily-api/index.ts:35:9
TS2345 [ERROR]: Argument of type 'import("https://deno.land/x/oak@v10.2.1/middleware.ts").Middleware<Record<string, any>, import("https://deno.land/x/oak@v10.2.1/context.ts").Context<Record<string, any>, Record<string, any>>>' is not assignable to parameter of type 'import("https://deno.land/x/oak@v10.4.0/middleware.ts").Middleware<Record<string, any>, import("https://deno.land/x/oak@v10.4.0/context.ts").Context<Record<string, any>, Record<string, any>>>'.
app.use(index.routes());
~~~~~~~~~~~~~~
at file:///home/ettinger/www/grazily.com/grazily-api/index.ts:36:9
TS2345 [ERROR]: Argument of type 'import("https://deno.land/x/oak@v10.2.1/middleware.ts").Middleware<Record<string, any>, import("https://deno.land/x/oak@v10.2.1/context.ts").Context<Record<string, any>, Record<string, any>>>' is not assignable to parameter of type 'import("https://deno.land/x/oak@v10.4.0/middleware.ts").Middleware<Record<string, any>, import("https://deno.land/x/oak@v10.4.0/context.ts").Context<Record<string, any>, Record<string, any>>>'.
app.use(index.allowedMethods());
~~~~~~~~~~~~~~~~~~~~~~
at file:///home/ettinger/www/grazily.com/grazily-api/index.ts:37:9
TS2345 [ERROR]: Argument of type 'import("https://deno.land/x/oak@v10.2.1/middleware.ts").Middleware<Record<string, any>, import("https://deno.land/x/oak@v10.2.1/context.ts").Context<Record<string, any>, Record<string, any>>>' is not assignable to parameter of type 'import("https://deno.land/x/oak@v10.4.0/middleware.ts").Middleware<Record<string, any>, import("https://deno.land/x/oak@v10.4.0/context.ts").Context<Record<string, any>, Record<string, any>>>'.
app.use(stats.routes());
~~~~~~~~~~~~~~
at file:///home/ettinger/www/grazily.com/grazily-api/index.ts:38:9
TS2345 [ERROR]: Argument of type 'import("https://deno.land/x/oak@v10.2.1/middleware.ts").Middleware<Record<string, any>, import("https://deno.land/x/oak@v10.2.1/context.ts").Context<Record<string, any>, Record<string, any>>>' is not assignable to parameter of type 'import("https://deno.land/x/oak@v10.4.0/middleware.ts").Middleware<Record<string, any>, import("https://deno.land/x/oak@v10.4.0/context.ts").Context<Record<string, any>, Record<string, any>>>'.
app.use(stats.allowedMethods());
~~~~~~~~~~~~~~~~~~~~~~
at file:///home/ettinger/www/grazily.com/grazily-api/index.ts:39:9
Found 8 errors.
what does this keep happening?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels