Deno and `npm:mongodb` problem with `node:`?
I'm simply importing stuff from
npm:mongodb@5.6.0
, why doesn't Deno understand this thing now?1 Reply
I have also tried this with the same problem:
deno cache --reload --no-lock --unstable main.ts
No, actually I get almost the same problem, just a different import:
error: Relative import path "events" not prefixed with / or ./ or ../ and not in import map from "file:///Users/.../Library/Caches/deno/npm/registry.npmjs.org/mongodb/5.6.0/mongodb.d.ts"
I can import npm:mongodb
just fine in Deno REPL, but not in my project...
Never mind, I found the culprit:
import { Sort } from "../../../../../../Library/Caches/deno/npm/registry.npmjs.org/mongodb/5.6.0/mongodb.d.ts";
🤦♂️