FIameCaster / prism-code-editor

Lightweight, extensible code editor component for the web using Prism
https://prism-code-editor.netlify.app
MIT License
57 stars 7 forks source link

Type resolution issue #6

Closed lorefnon closed 8 months ago

lorefnon commented 8 months ago

Hello, thanks for creating this library. This looks very useful for an app I am prototyping.

While I see that we have types in the package, typescript is not able to resolve them and I get type errors for all the imports.

image

I initially thought it had to do with my setup, but it can be reproduced in stackblitz as well: Reproducer

lorefnon commented 8 months ago

This works fine if we have moduleResolution: "Bundler" or moduleResolution: "ESNext" in tsconfig.json.