-
Notifications
You must be signed in to change notification settings - Fork 27.3k
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
Serverless API routes not working #7888
Comments
Hi @ecwyne, can you please try |
I am using
|
I've run into an issue with the API routes too (let me know if you want me to open a new ticket if it's not related). I have a file
|
Hey @ecwyne, could you provide better reproduction? So we can test it and fix it? Thx in advance |
@huv1k creating a minimum reproduction this morning I discovered that the issue first arises when I add https://github.com/fauna/faunadb-js and I'm happy to open an issue with them if it's an issue on their end. It appears it's an issue because they're using |
Having the reproduction would still be immensely helpful @ecwyne! |
@Timer @huv1k error logs point to https://github.com/ecwyne/nextjs-issue-7888/blob/master/www/.next/serverless/pages/api/hello.js#L101 (Line 101)
|
Found this fauna/faunadb-js#133 Which led me to node-formidable/formidable#337 And the suggested solution of node-formidable/formidable#337 (comment)
|
Confirmed, updating my const webpack = require('webpack');
module.exports = {
target: 'serverless',
webpack: config => {
config.plugins.push(
new webpack.DefinePlugin({ 'global.GENTLY': false }),
);
return config;
},
}; |
I guess we can close this then -- it's very unfortunate that Can you open an issue with faundadb to move to something that's maintained? |
Actually, it probably doesn't hurt for us to define this. PR incoming. |
Thanks so much @Timer! Everything in Next v9 is INCREDIBLE! |
Thank you for the awesome detective work @ecwyne! |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Working in development, but when deploying to now every api route has the following error in the logs.
The text was updated successfully, but these errors were encountered: