Skip to content

πŸ› Bug Report β€” Crash on import between @interchain-kit/react@0.3.55 and @interchain-kit/keplr-extension@0.3.55 SummaryΒ #33

Description

@Evan-dn

When using @interchain-kit/react@0.3.55 together with @interchain-kit/keplr-extension@0.3.55,
the application crashes immediately upon import, before any React render.
No ChainProvider or wallet code is executed β€” the error happens at module evaluation.

Environment:

  • React | 18.3.1
  • Vite | 5.x
  • TypeScript | 5.x
  • @interchain-kit/react | 0.3.55
  • @interchain-kit/keplr-extension | 0.3.55
  • Browser | Chrome / Brave (latest)
  • Platform | macOS (Node 20.x)

Ex:

import { ChainProvider } from "@interchain-kit/react";
import { keplrWallet } from "@interchain-kit/keplr-extension";

export default function App() {
  return <div>Test</div>;
}

Actual Behavior:

Uncaught TypeError: Class extends value undefined is not a constructor or null
at WCCosmosWallet (node_modules/@interchain-kit/react/.../wallet-connect)

So i decided to work with

  • @interchain-kit/react | 0.3.43
  • @interchain-kit/keplr-extension |0.3.43

but i haven't got the last version of module so cant use WalletModalProvider, and when i used connect function to open modal this does nothing.
I need to use old version like this :

 const {
    wallet,
    connect: connectKeplr,
    disconnect: disconnectKeplr,
    address: keplrAddress,
    status,
    message
  } = useChainWallet("cosmoshub", "keplr-extension")

for each wallet ( I couldn't find anything better.)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions