You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create Dash Wallet App with React Native but I'm getting following error
Error: Unable to resolve module fs from /Users/kryptomind/Desktop/Development/RN-Projects/DashWalletMobileApps-KM/node_modules/bls-signatures/blsjs.js: fs could not be found within the project or in these directories:
node_modules
The only thing seems to causing error is "fs" module which is not supported in react-native.
Expected Behavior
It's not working correctly while generating mnemonic.
Current Behavior
Getting following error
Error: Unable to resolve module fs from /Users/kryptomind/Desktop/Development/RN-Projects/DashWalletMobileApps-KM/node_modules/bls-signatures/blsjs.js: fs could not be found within the project or in these directories:
node_modules
This comes from the WASM loader in the emscripten-generated WASM. The loader tries to understand whether the environment is nodejs or the browser, and tries to load WASM file through FS if run on nodejs or through fetch if run in the browser. I'm not familiar with options to load WASM in react-native, but I heard there indeed were some problems with it in react-native, so I don't know what would be the best way to solve this
I'm trying to create Dash Wallet App with React Native but I'm getting following error
Error: Unable to resolve module fs from /Users/kryptomind/Desktop/Development/RN-Projects/DashWalletMobileApps-KM/node_modules/bls-signatures/blsjs.js: fs could not be found within the project or in these directories:
node_modules
The only thing seems to causing error is "fs" module which is not supported in react-native.
Expected Behavior
It's not working correctly while generating mnemonic.
Current Behavior
Getting following error
Error: Unable to resolve module fs from /Users/kryptomind/Desktop/Development/RN-Projects/DashWalletMobileApps-KM/node_modules/bls-signatures/blsjs.js: fs could not be found within the project or in these directories:
node_modules
Possible Solution
Steps to Reproduce (for bugs)
import Dash from 'dash';
const client = new Dash.Client({
network: 'testnet',
wallet: {
mnemonic: null,
},
});
const mnemonic = client.wallet?.exportWallet();
Context
I'm not able to use dash sdk since It was the main ingredient to create dash wallet and add functionalities like send/receive and get transactions.
Your Environment
The text was updated successfully, but these errors were encountered: