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
The Edge Function "map" is 1.13mb which exceeds the maximum size limit of 1mb. #32907
Comments
Most npm packages probably won't work immediately, since this is not run in Node.js. Do you have an example code of what you are trying to do that exceeds this limit? |
@balazsorban44 Funny you say that, I actually have to keep all the NodeJS code separated anyway, otherwise it’ll just crash. It’s going over the limit by bundling browser libs at 1.13mb for a visualization. For investigation, can I give you a link to a Vercel failed build? Is there a way to download the Vercel failed build source? The build is actually part of a larger homegrown monorepo with tooling that will not be easy to separate and share. |
I am also getting the following error when i turn on
|
@Ali-Hussein-dev are you able to share the Could you open a separate issue for this? |
@balazsorban44 here is the link to the issue with the code #34201 |
Closing this as we shipped a lot of optimizations recently:
Let us know if you are still running into this issue and we can reopen it, thanks! |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
What version of Next.js are you using?
12.0.7
What version of Node.js are you using?
v14.17.0
What browser are you using?
CLI
What operating system are you using?
macOS
How are you deploying your application?
vercel cli
Describe the Bug
The Edge Runtime breaks my code, as:
Related to #31317
Expected Behavior
I should be able to enable
concurrentFeatures: true
and publish my project to vercel, without triggering the different runtime.Quite frankly, the 1mb limit is just too small. Using threejs libs, d3 libs, material-ui, and accessibility libs easily pushes me above the limit. Using next/dynamic, adding sideEffects: false, and other techniques have no effect on the size.
I also tried using cdns with nextjs like https://betterprogramming.pub/next-js-reducing-bundle-size-when-using-third-party-libraries-db5407252d59 suggests, but that did not work either.
Even if you do manage to somehow reduce the file size, then you will still run into https://github.com/vercel/vercel/discussions/6931
To Reproduce
N/A
The text was updated successfully, but these errors were encountered: