Skip to main content
If you are implementing this SDK in the front-end, you may encounter some issues. You have to add the following config to your next.config.js file to avoid the errors:
/** @type {import('next').NextConfig} */
const nextConfig = {
  reactStrictMode: true,
  webpack: (config, { dev }) => {
    config.resolve.fallback = { fs: false, net: false, tls: false };
    if (dev !== false)
      config.externals.push(
        "fast-json-stringify",
        "@whatwg-node/fetch",
        "long",
        "uglify-es",
        "@graphql-mesh/utils",
        "@graphql-mesh/tools",
        "@graphql-tools/url-loader"
      );

    return config;
  },
};

module.exports = nextConfig;
For other frameworks, you will have to add similar configurations to avoid the errors.
I