Deno: Assert: 'sorted' does not exist in type 'InspectOptions'

Created on 16 Jul 2020  路  2Comments  路  Source: denoland/deno

I have a very simple oak server running both locally and on an external server. It is hosting static content, nothing else.

I ran deno cache --reload server.ts yesterday, and got the following:

error: TS2345 [ERROR]: Argument of type '{ depth: number; sorted: boolean; trailingComma: boolean; compact: boolean; iterableLimit: number; }' is not assignable to parameter of type 'InspectOptions'.
  Object literal may only specify known properties, and 'sorted' does not exist in type 'InspectOptions'.
        sorted: true,
        ~~~~~~~~~~~~
    at https://deno.land/[email protected]/testing/asserts.ts:26:9

I ran deno cache --reload server.ts again today with the same result, so I figured I should probably post the issue here.

Most helpful comment

Upgrade to Deno 1.2.0, whatever version of oak you're using isn't compatible with earlier versions of Deno.

All 2 comments

Upgrade to Deno 1.2.0, whatever version of oak you're using isn't compatible with earlier versions of Deno.

Yep, that resolved everything. Well spotted.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

davidbarratt picture davidbarratt  路  3Comments

ry picture ry  路  3Comments

zugende picture zugende  路  3Comments

benjamingr picture benjamingr  路  3Comments

JosephAkayesi picture JosephAkayesi  路  3Comments