Skip to content

Conversation

@glitch003
Copy link
Collaborator

@glitch003 glitch003 commented Dec 18, 2025

naga prod is up! adam tried to use it, and found that it doesn't work due to this bug. The actual error is TypeError: Cannot read properties of undefined (reading 'id') from this line

USAGE

Local Env Setup

LIT_MAINNET_RPC_URL=https://lit-chain-rpc.litprotocol.com

Copilot AI review requested due to automatic review settings December 18, 2025 00:26
@glitch003 glitch003 requested a review from Ansonhkg as a code owner December 18, 2025 00:26
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug where the Naga mainnet network could not be used with the Lit client. The issue occurred because NagaMainnetModule was not included in the NagaNetworkModule union type, causing the network parameter to be undefined when passed to createLitClient, which resulted in a TypeError: Cannot read properties of undefined (reading 'id') error at runtime.

Key changes:

  • Added NagaMainnetModule import from @lit-protocol/networks
  • Added NagaMainnetModule to the NagaNetworkModule union type
  • Refactored imports to use grouped import syntax for better readability

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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