Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outdated Superagent dep causing error for serverless functions #506

Open
dyontaistaton opened this issue Jun 4, 2022 · 0 comments
Open

Comments

@dyontaistaton
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant