Lara
Lara3mo ago

Relative import path "events" not prefixed with / or ./ or ../ and not in import map from "https://e

I get issue when I run :
deno run --allow-net --check index.ts
deno run --allow-net --check index.ts
Deno version :
deno 2.0.2
deno 2.0.2
Error:
error: Relative import path "events" not prefixed with / or ./ or ../ and not in import map from "https://esm.sh/v135/@types/node@18.16.19/events.d.ts"
hint: If you want to use a built-in Node module, add a "node:" prefix (ex. "node:events").
at https://esm.sh/v135/@types/node@18.16.19/events.d.ts:681:29
error: Relative import path "events" not prefixed with / or ./ or ../ and not in import map from "https://esm.sh/v135/@types/node@18.16.19/events.d.ts"
hint: If you want to use a built-in Node module, add a "node:" prefix (ex. "node:events").
at https://esm.sh/v135/@types/node@18.16.19/events.d.ts:681:29
Repository for reproducing it : git@github.com:Ge6ben/custom-route-oak.git Raised issue here : https://github.com/denoland/deno/issues/15206#issuecomment-2438099925
GitHub
GitHub - Ge6ben/custom-route-oak
Contribute to Ge6ben/custom-route-oak development by creating an account on GitHub.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?