Skip to content

@stacks/wallet-sdk: generateWallet TypeError (Wallet/Testnet undefined) #1816

@BowTiedDiego

Description

@BowTiedDiego

What version of Stacks.js are you using?

@stacks/wallet-sdk: 7.2.0

Describe the bug

When I try to generate a wallet in a React Native + Expo Go app using @stacks/wallet-sdk, the mnemonic is generated successfully with generateSecretKey(), but the call to generateWallet() fails after a ~1 minute delay.

In my main project I see an error like:

[TypeError: Cannot read property 'Wallet' of undefined]

To rule out issues with my own project setup, I created a fresh project and followed the React Native integration guide from the Stacks docs step by step. In that clean setup I still get a error when trying to generate wallet(second screenshot).

[TypeError: Cannot read property 'Testnet' of undefined]

How to reproduce

Follow the official React Native integration guide for Stacks.js exactly as described here:
https://docs.stacks.co/build/stacks.js-integrations/react-native-integration

Expected behavior

  • generateWallet({ secretKey, password }) should resolve and return a valid Wallet object in a React Native + Expo Go environment, as long as the documented polyfills are installed and configured.
  • If there is an environment limitation, I would expect a clear, immediate error message describing the limitation, rather than a generic TypeError about Wallet being undefined after a long delay.

Additional context

  • Environment: React Native with Expo Go
  • Device: Android emulator: “Medium Phone API 36.1” (Android 16.0 “Baklava”, arm64)
  • OS Host machine: macOS 26.1 (Build 25B78)
Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUnwanted or unintended logic causing harm

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions