jitsi / jitsi-meet-react-sdk

React SDK for Jitsi Meet
Apache License 2.0
65 stars 36 forks source link

"@jitsi/react-sdk 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." #17

Closed andersaamodt closed 2 years ago

andersaamodt commented 2 years ago

Trying to compile with Vite + TypeScript and getting this error

andersaamodt commented 2 years ago

I manually added "type": "module", to the package.json file in node_modules/@jitsi/react-sdk and it made this error go away

mihhu commented 2 years ago

Sorry for the late reply, are you using a vite template?

andersaamodt commented 2 years ago

I used the built-in typescript-react template, yes

mihhu commented 2 years ago

Could you please tell me when exactly does this error pop up? I can't seem to reproduce it.

andersaamodt commented 2 years ago

I think it's gone away for me, too. Checking the package.json, the module line is gone, so I guess it got updated and overwritten and the error hasn't come back. I'll let you know if it reappears with more detail.