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

Can't find types #9

Closed Mike-Bell closed 6 months ago

Mike-Bell commented 6 months ago

My project setup is unable to find the included type definitions. Not sure why.

image

Looking at your package.json, it looks like you're doing some "newer/fancier" things with your package setup that I'm unfamiliar with, so I'm not sure where the problem is, but I think I'm using a fairly straight-forward setup, so I'm surprised I have issues. I'm using TypeScript 5.2.2, vscode, and esbuild to build/bundle (though I don't think esbuild should be related here). If I have time, I'll try to do a "minimal repro" of how I got into this state - I have a bit going on in my project and I probably can't share it directly.

FIameCaster commented 6 months ago

What's the moduleResolution set to in tsconfig.json? Setting it to Bundler, Node16 or NodeNext should work.

Mike-Bell commented 6 months ago

yep, "moduleResolution": "Bundler" seems to work for me... thanks!