I am getting error when trying to run simple Deno Js
OAK
middleware server on my:
Ubuntu 18.04,
Deno 1.0.4,
v8 8.4.300,
typescript 3.9.2
By running either deno run index.js
or running deno run -A index.js
$ deno run index.js
Compile file:///home/some/tst/index.js
error: Uncaught AssertionError: Unexpected skip of the emit.
at Object.assert ($deno$/util.ts:33:11)
at compile ($deno$/compiler.ts:1170:7)
at tsCompilerOnMessage ($deno$/compiler.ts:1338:22)
at workerMessageRecvCallback ($deno$/runtime_worker.ts:72:33)
at file:///home/some/dcode/tst/__anonymous__:1:1
This is my index.js file code:
import { Application } from "https://deno.land/x/oak/mod.ts";
const app = new Application();
app.use((ctx) => {
ctx.response.body = "Hello World!";
});
await app.listen({ port: 8000 });