siriwave icon indicating copy to clipboard operation
siriwave copied to clipboard

sveltekit:doesn't appear to be written in CJS

Open Erildo opened this issue 2 years ago • 1 comments

Hi Kopiro, after installing it on my project it throws this error: siriwave 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.

If you have encountered this problem before please let me know how you fixed it...

Erildo avatar Sep 10 '22 09:09 Erildo

Hi Kopiro, after installing it on my project it throws this error: siriwave 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.

If you have encountered this problem before please let me know how you fixed it...

I also encountered this problem before. my workaround, is that I manually edit the package.json of the siriwave package from the node_modules folder. and add the "type":"module" to it.

https://github.com/kopiro/siriwave/issues/78

A0nurfitri avatar Aug 21 '23 08:08 A0nurfitri