-
Notifications
You must be signed in to change notification settings - Fork 310
Description
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 validWalletobject 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
TypeErroraboutWalletbeingundefinedafter 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)
