Skip to content

Fix livekit-client internal export usage#1289

Merged
1egoman merged 7 commits intomainfrom
fix-livekit-client-internal-export-usage
Feb 19, 2026
Merged

Fix livekit-client internal export usage#1289
1egoman merged 7 commits intomainfrom
fix-livekit-client-internal-export-usage

Conversation

@1egoman
Copy link
Contributor

@1egoman 1egoman commented Feb 19, 2026

Previously, @livekit/components-core contained a bunch of imports like this:

// @ts-ignore some module resolutions (other than 'node') choke on this
import type { PublicationEventCallbacks } from 'livekit-client/dist/src/room/track/TrackPublication';

However, some downstream users (probably with the node module resolution configuration mentioned) were still getting build errors when attempting to use types in @livekit/components-core/dist/....

I think this is because the @ts-ignore comments above (most) don't get copied into the resulting built version of the code so these issues still get raised by downstream users who rely on using the typing files in dist/. So, instead, use proper exports from the top level livekit-client package.

After making this change, I built the @livekit/components-core package and did a grep for livekit-client/dist in the built output and found no remaining occurrences.

Relevant upstream change this relies on: livekit/client-sdk-js#1815

The ts-ignore comments above (most) don't get copied into the resulting
built version of the code so these issues still get raised by
downstream users who rely on using the typing files in `dist/`.

Relevant upstream change this relies on:
livekit/client-sdk-js#1815
@changeset-bot
Copy link

changeset-bot bot commented Feb 19, 2026

🦋 Changeset detected

Latest commit: 808bf08

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@livekit/components-core Patch
@livekit/components-react Patch
@agents-ui Patch
@livekit/component-example-next Patch
@livekit/components-js-docs Patch
@livekit/component-docs-storybook Patch
@livekit/components-docs-gen Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Feb 19, 2026

size-limit report 📦

Path Size
LiveKitRoom only 6 KB (0%)
LiveKitRoom with VideoConference 32.89 KB (0%)
All exports 43.87 KB (0%)

Copy link
Contributor

@lukasIO lukasIO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

the pnpm-lock diff is unexpectedly large, not sure why, but guess that's ok. Just wondering why we didn't see that change before

@lukasIO
Copy link
Contributor

lukasIO commented Feb 19, 2026

aha! yeah, something's off there, the lock file is also why the CI is failing

@1egoman
Copy link
Contributor Author

1egoman commented Feb 19, 2026

I noticed that too but figured it was due to some dependency updates in livekit-client, but after looking a bit more I think there I think it accidentally included some dependencies for an un-checked in dierctory I have in my local repo copy... I will fix it.

Turns out I have made some quite substantial modifications to My local
copies of the examples, oops.
@1egoman 1egoman merged commit 176749a into main Feb 19, 2026
6 checks passed
@1egoman 1egoman deleted the fix-livekit-client-internal-export-usage branch February 19, 2026 16:42
@github-actions github-actions bot mentioned this pull request Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants