question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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/std@0.61.0/testing/asserts.ts:26:9

was trying out a basic example

import { Application, Router } from "https://deno.land/x/oak/mod.ts";

const app = new Application();
const router = new Router();

app.use(router.routes());
app.listen({ port: 80 });

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
kitsonkcommented, Jul 13, 2020

The main branch only supports Deno 1.2.0. What version of Deno are you using?

1reaction
blubbllcommented, Jul 14, 2020

Upgraded to 1.2.0 and now it works as expected, but the console now says

Check file:///app/index.ts.js

in red (formatted as error). is this normal?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · microsoft/TypeScript - GitHub
TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Issues · microsoft/TypeScript.
Read more >
Documentation - TypeScript 3.9
TypeScript 3.9 addresses this issue by changing the internals of how the compiler and language service caches file lookups.
Read more >
7 really good reasons not to use TypeScript - everyday.codes
Everyone loves TypeScript. It “solves” many problems JS has, it is a “superset” of JS, it will make your code error-prone and pleasant...
Read more >
Common TypeScript module problems and how to solve them
Common TypeScript module problems and how to solve them · Introduction · Problem 1: Irregular location of dependencies · Solution 1: Locate the ......
Read more >
Pros and Cons of TypeScript - AltexSoft
TypeScript cons: what problems it creates · Not true static typing · One more JavaScript to learn · Bloated code · Adding extra...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found