Skip to content

Conversation

@GuiBibeau
Copy link
Collaborator

Summary

  • Use browser entry as default export for SSR compatibility in @solana/client and @solana/react-hooks
  • The default export was pointing to .node.mjs which imports ws through @solana/kit, causing Next.js SSR to fail
  • Also updated edge-light and workerd conditions to use browser build

Testing

  • pnpm lint
  • pnpm test
  • pnpm build
  • Tested with Next.js 16 app using @solana/client and @solana/react-hooks

@GuiBibeau GuiBibeau merged commit 7aaf0a7 into main Dec 29, 2025
7 checks passed
@github-actions github-actions bot mentioned this pull request Dec 29, 2025
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