Skip to content

Outdated Superagent dep causing error for serverless functions #506

Open
@dyontaistaton

Description

@dyontaistaton

I'm not a pro, and need a little help with this. I'm trying to use this package for a Nuxt site with it being hosted on Vercel. Within the serverless functions' logs I keep getting this error

ERROR  require is not a function
at Object.<anonymous> (node_modules_dev/wpapi/node_modules/formidable/lib/incoming_form.js:3:0)
at __webpack_require__ (webpack/bootstrap:25:0)
at Object.<anonymous> (node_modules_dev/wpapi/node_modules/formidable/lib/index.js:1:0)
at __webpack_require__ (webpack/bootstrap:25:0)
at Object.<anonymous> (node_modules_dev/wpapi/node_modules/superagent/lib/node/index.js:8:0)
at __webpack_require__ (webpack/bootstrap:25:0)
at Object.<anonymous> (node_modules_dev/wpapi/superagent/http-transport.js:6:0)
at __webpack_require__ (webpack/bootstrap:25:0)
at Object.<anonymous> (node_modules_dev/wpapi/superagent/index.js:4:0)
at __webpack_require__ (webpack/bootstrap:25:0)

Check This Issue with formidable a dep of superagent

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions