Emanuel | msv
Emanuel | msv
DDeno
Created by Emanuel | msv on 7/1/2024 in #help
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" });
}
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" });
}
5 replies