exercism / codemirror-lang-wren

Wren language support for the CodeMirror code editor.
MIT License
3 stars 4 forks source link

Cannot find type declarations when imported using `"bundler"` as module resolution #26

Open ErikSchierboom opened 4 months ago

ErikSchierboom commented 4 months ago

Hey! I am trying to install the latest version (1.0.0) but it looks like it doesn't work when setting moduleResulution to bundler when using TypeScript:

src/components/Editor/languageCompartment.ts:47:37 - error TS2307: Cannot find module '@exercism/codemirror-lang-wren' or its corresponding type declarations.

47       const { wren } = await import("@exercism/codemirror-lang-wren");
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Any idea how to fix this?

joshgoebel commented 4 months ago

Could it maybe be I just need to publish the new version? It's been so long since I've touched this.

ErikSchierboom commented 4 months ago

Could be, but I did try to point to the github repo URL from the package.json file and that also didn't seem to work. @dem4ron you've also looked at this. Did you have any more insights?

dem4ron commented 4 months ago

I think publishing this would solve this issue.

ErikSchierboom commented 4 months ago

@joshgoebel Do you want to publish the new version?