monaco-languageclient
monaco-languageclient copied to clipboard
monaco-languageclient doesn't appear to be written in CJS, but also doesn't appear to be a valid ES module
Hey,
Using the latest version of monaco-languageclient
(3.0.1
) with Vite 3, and this error is spat out when using the package. Seems as though to remove the warning adding "type": "module"
to the package.json should do it - everything is working but just adding this here for awareness.
Thanks for making us aware 👍
Sorry, should have put the full message:
monaco-languageclient doesn't appear to be written in CJS, but also doesn't appear to be a valid ES module (i.e. it doesn't have "type": "module" or an .mjs extension for the entry point). Please contact the package author to fix.
@Ehesp I am working on transforming everything to proper ESM (https://github.com/TypeFox/monaco-languageclient/tree/full-esm). Can you give version 3.1.0-next.0
a try: https://www.npmjs.com/package/monaco-languageclient/v/3.1.0-next.0
Thanks 🙂
Cool will do. I'm away this coming week so will check it out after.