msvM
Denoβ€’2y agoβ€’
4 replies
msv

Cannot find module Error

Hello, can someone help me with the error
Cannot find module 'https://deno.land/std@0.97.0/http/server.ts' or its corresponding type declarations.
It works, so something is returned on the localhost page or in a get method, but can I fix this error somehow?

import { serve } from "https://deno.land/std@0.97.0/http/server.ts";

const server = serve({ port: 8000 });

console.log("HTTP webserver running.  Access it at:  http://localhost:8000/");

for await (const request of server) {
  request.respond({ body: "Hello World\n" });
}
Was this page helpful?