Open victorwu opened 2 years ago
Error stems from fabric.http.js minified file. WASM_BUFFER is used in secp256k1 which is a wasm compiled dependency. Line producing the error const WASM_BUFFER = new Uint8Array(wasm.memory.buffer);
WASM_BUFFER
const WASM_BUFFER = new Uint8Array(wasm.memory.buffer);
https://github.com/web3/web3.js#troubleshooting-and-known-issues
https://stackoverflow.com/questions/64557638/how-to-polyfill-node-core-modules-in-webpack-5
Integrating wasm to webpack did not make any progress, showed same errors
ordering of dependencies could cause issues, list parent dependencies below child dependencies
https://viglucci.io/how-to-polyfill-buffer-with-webpack-5
Error stems from fabric.http.js minified file.
WASM_BUFFER
is used in secp256k1 which is a wasm compiled dependency. Line producing the errorconst WASM_BUFFER = new Uint8Array(wasm.memory.buffer);