-
Notifications
You must be signed in to change notification settings - Fork 86
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
Next 11 Serverless Functions Break - "Request be smaller than 69905067 bytes for the CreateFunction Operation" #454
Comments
@NoahBres hey noah! so sorry you're running into this! do you have note: esbuild in its current state breaks dynamic imports in next. if you're using dynamic imports in your site, we have a fix for the broken imports behind a feature flag. to enable it, add |
This worked great! Thank you so much!! I did not have dynamic imports so can't give any feedback on that. But thank you for this fix! |
it's working for me also, thanks! |
Complete solution here: #571 (comment) |
I am currently wrestling with this issue. I've applied these configurations as I've read to do. Am I missing something? P.S. Here is the source code if you need it, https://github.com/Gnarus-G/bytin |
@Gnarus-G just to confirm - you're getting the "request must be smaller than.." error? |
@lindsaylevine Yes I am. |
@Gnarus-G gotcha, okay. would you be willing to give our plugin rewrite alpha a try? it's not ready for production, but i predict it will fix your issue. a formal beta will be released at the end of this week. to try, install https://www.npmjs.com/package/@netlify/plugin-nextjs-experimental and follow the instructions there. let us know! |
@lindsaylevine Still getting the issue. |
i think you can remove esbuild and external_node_modules (not sure about all but you definitely shouldnt need |
@lindsaylevine Thanks very much for your help. I removed esbuild and external_node_modules configs, and it finally deployed. I'm happy about that. But I don't care anymore, my production is working fine on vercel so I'm good. You can ignore me now. |
Describe the bug
I have a very small serverless function, 114 lines long with 2 relatively small packages, and it kills the netlify deploys after upgrading to Next 11. It was working fine on Next 10.
The function compiles to 63.9kb according to
next build
.However, upon deploy, this function throws the error "Request must be smaller than 69905067 bytes for the CreateFunction operation." This error seems to be related to AWS lambda functions setting a package size limit of 50mb. This function is definitely under that.
To Reproduce
vishnuSriram/operation-medical-care@7e5a668#diff-bfa062de040f55a15ce910800757061ec3d2fc31d6b7c72d9fa02b75a9ad1133
Versions
Here is our deploy log if helpful: https://gist.github.com/vishnuSriram/270e0a5a72122a91c1494fd4a6544524
The text was updated successfully, but these errors were encountered: