## The problem
Issue auth0/node-auth0#798 (closed, 12 comments): <!-- **Please do not report security vulnerabilities here**. The Responsible Disclosure Program (https://auth0.com/whitehat) details the procedure for disclosing security issues. Thank you in advance for helping us to improve this library! Please read through the template below and answer all relevant questions.
## The fix
If node-auth0 (or its superagent dependency) fails to bundle under webpack or serverless-bundle with 'TypeError: hexoid is not a function', two fixes worked for the reporter. One: disable Formidable in the bundle via serverless.yml: custom: bundle: aliases: - formidable: false. Two: downgrade superagent from v7 to v6. superagent usually comes in as a transitive dependency, so pin it with yarn resolutions: { "resolutions": { "superagent": "6.x" } }. Either one cleared the build.
## Notes
Thread: https://github.com/auth0/node-auth0/issues/798. Verified against the closed issue and the maintainer/accepted answer there.