-
Hi. I was trying demo by the first time, and I already have some issues. Here's my code, the command and the error:
import { serve } from "https://deno.land/[email protected]/http/server.ts";
const server = serve({ port: 8000 });
console.log("http://localhost:8000/");
for await (const req of server) {
req.respond({ body: "Hello World\n" });
} I compiled using It gives me this error:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi there @Brian3647 Just like when using the |
Beta Was this translation helpful? Give feedback.
Hi there @Brian3647
Just like when using the
deno run
subcommand, you need to pass all flags before the script name.deno compile --unstable --allow-net demo-test.ts
will work