wooorm / lowlight

Virtual syntax highlighting for virtual DOMs and non-HTML things
MIT License
725 stars 25 forks source link

How to resolve TypeScript conflict errors? #41

Closed elclanrs closed 2 years ago

elclanrs commented 2 years ago

I'm using the latest lowlight (2.3.0) and the latest highlight.js (11.2.0) and just importing lowlight into my Angular 12 app gives me this error:

lowlight-type-error

How can I resolve this issue?

elclanrs commented 2 years ago

I was able to resolve it by deleting my package-lock.json and node_modules folder and running npm i again. I'm not sure why the dependency wasn't being deduped because both versions were 11.2.0.