jitsi / jitsi-meet-react-sdk

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

Unexpected token 'export' #32

Open angirarc opened 1 year ago

angirarc commented 1 year ago

image

Throws the error below when working with Astro + Vite `[vite] Error when evaluating SSR module /src/components/meeting.jsx: failed to import "@jitsi/react-sdk"

node_modules\@jitsi\react-sdk\lib\index.js:1

export * from './components';

^^^^^^`

mfahadnadeem commented 11 months ago

Following

vpzomtrrfrt commented 11 months ago

I think this would be resolved by adding "type": "module" to the package.json, though it can't be loaded from commonjs in that case

gitmazzio commented 8 months ago

Following v1.4.0 has this error.

I use nextjs, i don't know if I have to do some particular configuration.

@IamRaynah did you resolve the issue?

gitmazzio commented 8 months ago

Following v1.4.0 has this error.

I use nextjs, i don't know if I have to do some particular configuration.

@IamRaynah did you resolve the issue?

For nextjs this solution solve the issue!