Closed jupiterrosen closed 1 year ago
Looks like this is coming from here:
Follow up with the Near folks and ask if they have a solution.
In the meantime, consider using one of the many text encoding polyfills for React Native, particularly one that supports the fatal
option.
Because there has been no activity on this issue for 7 days since it was closed, it has been automatically locked. Please open a new issue if it requires a follow up.
Overview
I'm using "@solana/web3.js": "1.41.6" under react native "expo": "^46.0.17" for deeplink connection with Phantom, however, after upgrading from expo sdk 46 to expo sdk 49, the error: Error: Failed to construct 'TextDecoder': the 'fatal' option is unsupported., js engine: hermes are consistently occured when solana web3js is imported
Steps to reproduce
use this package.json for this repo(https://github.com/phantom/deep-link-demo-app/tree/nick/upgrade-to-expo-48)
Description of bug
Error: Failed to construct 'TextDecoder': the 'fatal' option is unsupported., js engine: hermes ERROR Invariant Violation: "main" has not been registered. This can happen if:
AppRegistry.registerComponent
wasn't called., js engine: hermes