Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Attempted import error: 'RoomEvent' is not exported from 'livekit-client' #1391

Closed
HQ92 opened this issue Jan 30, 2025 · 2 comments
Closed

Comments

@HQ92
Copy link

HQ92 commented Jan 30, 2025

Describe the bug

I'm trying to follow the Nextjs starter project from the docs, I realise they are built for Next 13, but am trying to implement them in Next 15. It does not work.

Can we get an example repo setup for reference with Next 15?

I'm trying to get this working for a new client project launching next week, at the moment, I will be forced to use another service just to get this working.

Reproduction

Clone Next 13 project, update to next 15, fails when you run the project.

Logs

⨯ ../../node_modules/.pnpm/@livekit+components-react@2.8.1_livekit-client@2.8.1_react-dom@19.0.0_react@19.0.0__react@19.0.0_tslib@2.8.1/node_modules/@livekit/components-react/dist/components-DZxz2YwG.mjs
frontend:dev: [2] Attempted import error: 'RoomEvent' is not exported from 'livekit-client' (imported as 'Le').
frontend:dev: [2]
frontend:dev: [2] Import trace for requested module:
frontend:dev: [2] ../../node_modules/.pnpm/@livekit+components-react@2.8.1_livekit-client@2.8.1_react-dom@19.0.0_react@19.0.0__react@19.0.0_tslib@2.8.1/node_modules/@livekit/components-react/dist/components-DZxz2YwG.mjs
frontend:dev: [2] ../../node_modules/.pnpm/@livekit+components-react@2.8.1_livekit-client@2.8.1_react-dom@19.0.0_react@19.0.0__react@19.0.0_tslib@2.8.1/node_modules/@livekit/components-react/dist/index.mjs
frontend:dev: [2] ./src/app/(website)/(site)/session/page.client.tsx
frontend:dev: [2]  ⨯ TypeError: The "path" argument must be of type string. Received undefined

System Info

OS: Windows 11 26100.2894
Browser: Microsoft Edge Version 132.0.2957.127 (Official build) (64-bit)
Node: v21.1.0
PNPM: v9.12.3

"@livekit/components-react": "^2.8.1",
"@livekit/components-styles": "^1.1.4",
"livekit-client": "^2.8.1",
"livekit-server-sdk": "^2.9.7",
"next": "~15.0.4",

Severity

blocking all usage of LiveKit

Additional Information

No response

@lukasIO
Copy link
Contributor

lukasIO commented Jan 31, 2025

Does this only happen in run dev or also in run build.

With next15 being rather new there might be some new issues popping up that they haven't addressed yet.
The latest next release is 15.1.6, maybe try with that as a first measure.

Have you tried the workarounds mentioned in the other issue that you commented on?

@lukasIO
Copy link
Contributor

lukasIO commented Jan 31, 2025

I just tested this by upgrading our meet example to the latest next15 version and it works with minor modifications, see livekit-examples/meet#391

@lukasIO lukasIO closed this as completed Jan 31, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants