kopiro / siriwave

The Apple® Siri wave-form replicated in a JS library.
http://kopiro.github.io/siriwave/
MIT License
1.63k stars 168 forks source link

sveltekit:doesn't appear to be written in CJS #71

Open Erildo opened 2 years ago

Erildo commented 2 years ago

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...

A0nurfitri commented 1 year ago

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