Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on react-native iOS 14 TypeError: TypedArray.of requires its this argument to subclass a TypedArray constructor #3009

Open
Volekss opened this issue Nov 11, 2022 · 0 comments
Labels

Comments

@Volekss
Copy link

Volekss commented Nov 11, 2022

I am using @bitgo/utxo-lib lib in my react-native application. And after testing on different devices I realized that it's failing specifically on iOS 14. With the following error on the console

ERROR TypeError: TypedArray.of requires its this argument to subclass a TypedArray constructor

image

Environment Details

  • OS: macOS
  • Node Version: v16.13.1
  • Yarn Version: 1.22.19
  • BitGoJS Version: 6.0.0
  • BitGo Environment: mainnet

Expected Behavior

The import of the library should not crash the app.

Current Behavior

After only importing the library the app crashes with an error: ERROR TypeError: TypedArray.of requires its this argument to subclass a TypedArray constructor

Possible Solution

Steps to Reproduce

  1. Create a react-native app
  2. Import the library on the shim.js: global.bitcoin = require("@bitgo/utxo-lib");
  3. Run the app on the iOS 14
  4. Now you will see the bug ERROR TypeError: TypedArray.of requires its this argument to subclass a TypedArray constructor
@Volekss Volekss added the bug label Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant