Comments (9)
Hey, you can still configure the webpack for all the packages required like fs, crypto...
I tried making changes in your StackBlitz repo, it is working now
yarn add bufferutil net request tls utf-8-validate -D
Create next.config.js
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
webpack(config) {
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,
bufferutil: require.resolve('bufferutil'),
net: require.resolve('net'),
request: require.resolve('request'),
tls: require.resolve('tls'),
'utf-8-validate': require.resolve('utf-8-validate'),
};
return config;
},
};
module.exports = nextConfig;
Then update the Biconomy object inside useEffect as it is not a react hook.
from mexa-sdk.
Hey, this can be resolved by using either using webpack 4 by downgrading the react-scripts to 4.0.3
Or you can to configure webpack 5.
Can chec-out this issue and fix in PR.
More info
from mexa-sdk.
Hey, this can be resolved by using either using webpack 4 by downgrading the react-scripts to 4.0.3
Or you can to configure webpack 5.
Can chec-out this issue and fix in PR.More info
However next.js 12 had deprecated webpack 4 support. So, there's no way to revert to webpack 4 for next.js users.
from mexa-sdk.
Thanks @AmanRaj1608 ! I can verified that it works now. However I'm facing an issue about forwarder contract is undefined
. I took a look into the biconomy client object and the forwarder is empty.
from mexa-sdk.
On which network are you trying @marcustut
from mexa-sdk.
On which network are you trying @marcustut
Polygon Mumbai
from mexa-sdk.
This is the exact error I'm getting. Whatever contracts or function I'm trying to call, it's throwing this error.
from mexa-sdk.
Did you setup a trusted forwarder in your smart contract?
from mexa-sdk.
closing this issue. for forwarder feel free to open another on discord dev support or get in touch on tg https://t.me/yashasvi_yc7
from mexa-sdk.
Related Issues (20)
- Open Bounty: Use Gasless SDK in your app HOT 5
- Gasless Enhancement: Enable custom messages inside the signature request pop-up
- Signature Modification to Show Custom Messages on Wallet Popup HOT 6
- Many errors occurred from the time I upgrade to 3.0.1 HOT 3
- send_Transaction with biconomy.provider failed HOT 1
- Not able to sign the transaction when integrating Gasless transaction using web3Auth wallet.
- Gas Token Swap Widget HOT 2
- Make your dApp Gasless HOT 3
- Incompatibility between Web3Auth and Biconomy w/ React TS (error while getting transaction receipt) HOT 1
- can't run react app after install @biconomy/mexa HOT 1
- Got error: Can't resolve 'fs'
- So many errors occurred in Console from utils.js with debug disabled.
- Transaction pending: This txn hash was found in our secondary node and should be picked up by our indexer in a short while
- Problem with SDK in backend HOT 1
- Wrong signer.
- Galery
- Support for customising EIP 712 signature request HOT 2
- Bits being inserted into uin256 parameters HOT 1
- Uncaught exception in /api/v2/meta-tx/systemInfo call HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mexa-sdk.