jitsi-meet-react-sdk icon indicating copy to clipboard operation
jitsi-meet-react-sdk copied to clipboard

Unexpected token 'export'

Open angirarc opened this issue 2 years ago • 4 comments

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';

^^^^^^`

angirarc avatar Aug 18 '23 14:08 angirarc

Following

mfahadnadeem avatar Sep 11 '23 09:09 mfahadnadeem

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

vpzomtrrfrt avatar Sep 13 '23 15:09 vpzomtrrfrt

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 avatar Dec 20 '23 13:12 gitmazzio

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!

gitmazzio avatar Dec 20 '23 13:12 gitmazzio