GithubHelp home page GithubHelp logo

Comments (9)

AmanRaj1608 avatar AmanRaj1608 commented on August 18, 2024 5

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.

AmanRaj1608 avatar AmanRaj1608 commented on August 18, 2024

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.

marcustut avatar marcustut commented on August 18, 2024

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.

marcustut avatar marcustut commented on August 18, 2024

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.

AmanRaj1608 avatar AmanRaj1608 commented on August 18, 2024

On which network are you trying @marcustut

from mexa-sdk.

marcustut avatar marcustut commented on August 18, 2024

On which network are you trying @marcustut

Polygon Mumbai

from mexa-sdk.

marcustut avatar marcustut commented on August 18, 2024

Screenshot 2022-08-02 at 4 01 10 PM

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.

Deveshb15 avatar Deveshb15 commented on August 18, 2024

Did you setup a trusted forwarder in your smart contract?

from mexa-sdk.

livingrockrises avatar livingrockrises commented on August 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.