iceghostI
Denoβ€’3y agoβ€’
1 reply
iceghost

Transitive dependencies with node_modules

Hi all, today I stumbled upon this not-sure-if-a-bug:

import { LRParser } from "npm:@lezer/lr@1.3.14";
import { LRLanguage } from "npm:@codemirror/language@6.9.3";

LRLanguage.define({
  parser: LRParser.deserialize(undefined),
});


Checking the lock file, there is no duplicated package with different version. Running without nodeModulesDir config works, but otherwise,
typescript
has this error:

Type 'import("file:///tmp/deno-test/node_modules/.deno/@lezer+lr@1.3.14/node_modules/@lezer/lr/dist/index").LRParser' is not assignable to type 'import("file:///tmp/deno-test/node_modules/.deno/@codemirror+language@6.9.3/node_modules/@lezer/lr/dist/index").LRParser'.


Should I report this bug? (I can live without toggling
node_modules
for now)
Was this page helpful?