Skip to content

Webpack failure TypeError: hexoid is not a function #798

Closed
@maryamaljanabi

Description

@maryamaljanabi

Describe the problem

When running my nodejs serverless application that uses anything from auth0, I get the following error:

TypeError: hexoid is not a function
    at Object.../../formidable/src/Formidable.js (/***/***/***/project-name/.webpack/service/handlers/auth0-file.js:111306:18)

What was the expected behavior?

The application should not throw an error and accessing the features of auth0 package should be accessed without a problem.

Reproduction

  • yarn add auth0 @types/auth0
  • yarn start
  • Request the endpoint that uses anything from auth0

Environment

  • Version of this library used: 3.3.0 (also tried previous versions up till 2.2.24)
  • Which framework are you using, if applicable: nodejs serverless application (no framework)
  • Other modules/plugins/libraries that might be involved: the issue seems to be coming from Formidable and Superagent which auth0 depends on (I'm not using them myself)
  • Any other relevant information you think would be useful:
    It's worth mentioning these versions that I'm using:
  • @types/auth0: 3.3.0
  • serverless: 2.66.0
  • serverless-bundle: 5.0.2
  • serverless-offline: 8.2.0
  • aws-sdk: 2.684.0
  • nodejs tried all these versions but the error didn't go away (14.19.0, 16.17.0, 18.12.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions