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),});
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 nodeModulesDirnodeModulesDir config works, but otherwise, typescripttypescript 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'.
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_modulesnode_modules for now)
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
D
Deno
Chat about Deno, a modern runtime for JavaScript and TypeScript.