TypeError: Busboy is not a constructor

I have a netlify function that looks like this:

exports.handler = async function (event, context, callback) {

    var { name, email, message, } = JSON.parse(event.body)
    console.log({name, email, message})

}

in one site, it works, in another, it gives the following error:

TypeError: Busboy is not a constructorSep 1, 07:31:18 AM: 3a89e58f ERROR      at /var/task/mailer.js:70:24Sep 1, 07:31:18 AM: 3a89e58f ERROR      at new Promise (<anonymous>)Sep 1, 07:31:18 AM: 3a89e58f ERROR      at parseMultipartFormData (/var/task/mailer.js:69:12)Sep 1, 07:31:18 AM: 3a89e58f ERROR      at exports.handler (/var/task/mailer.js:20:32)Sep 1, 07:31:18 AM: 3a89e58f ERROR      at Runtime.handleOnceNonStreaming (file:///var/runtime/index.mjs:1147:29)

Is there something I am missing? I have never seen such an error before. I have tried to look at similar issues in this forum with no luck.

Thanks for the post @mikeck and welcome.

Kindly visit the Official Busboy Github issues page below regarding the issue and then try the suggestions there to see if it helps.

Also checkout the StackOverflow link below regarding the same problem and how to fix it.

Thanks.