Skip to content

Conversation

@thomasyuill-livekit
Copy link

@thomasyuill-livekit thomasyuill-livekit commented Dec 12, 2025

Fix client-side render error in Next.js

Problem

The shader component throws compilation error in Next.js applications when rendered client-side.
This shader compiles and renders fine through SSR.

Screenshot 2025-12-29 at 3 32 26 PM

Solution

  • Migrate from class component to function component,
  • Wrap initial drawScene() call in requestAnimationFrame

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.

1 participant