FortAwesome / Font-Awesome

The iconic SVG, font, and CSS toolkit
https://fontawesome.com
Other
73.65k stars 12.19k forks source link

Vercel build error - exceeds the maximum size limit #18170

Open FilipKostrzewski opened 3 years ago

FilipKostrzewski commented 3 years ago

Describe the bug Adding dependencies to the project which is hosted on vercel, breaks the build saying that memory exceeds the maximum size limit of 50mb.

To Reproduce Not relevant.

Describe any details about the test case that we need to know like "whatever you do, don't click the red button."

Screenshots image

Version and implementation Version: ^6.0.0-beta1 Browser and version: Not relevant

Bug report checklist

23:25:27.156 | Installing build runtime... -- | -- 23:25:30.716 | Build runtime installed: 3.559s 23:25:33.738 | Looking up build cache... 23:25:34.099 | Build cache found. Downloading... 23:25:38.294 | Build cache downloaded [66.96 MB]: 4194.914ms 23:25:39.615 | [log] Running with @nuxt/vercel-builder version 0.21.3 23:25:39.615 | [log] ----------------- Prepare build ----------------- 23:25:39.616 | [log] Downloading files... 23:25:39.616 | [log] Working directory: /vercel/path0 23:25:39.632 | [log] Using yarn 23:25:39.634 | [info] Prepare build took: 18.456034 ms 23:25:39.634 | [log] ----------------- Install devDependencies ----------------- 23:25:39.634 | [log] Using cached node_modules_dev 23:25:39.949 | yarn install v1.22.10 23:25:40.061 | [1/5] Resolving packages... 23:25:40.687 | [2/5] Fetching packages... 23:26:03.712 | info fsevents@2.3.2: The platform "linux" is incompatible with this module. 23:26:03.713 | info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation. 23:26:03.731 | info fsevents@1.2.13: The platform "linux" is incompatible with this module. 23:26:03.731 | info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation. 23:26:03.740 | [3/5] Linking dependencies... 23:26:03.742 | warning " > @fortawesome/vue-fontawesome@2.0.2" has unmet peer dependency "vue@~2". 23:26:03.743 | warning "nuxt > @nuxt/components@2.1.8" has unmet peer dependency "consola@*". 23:26:03.762 | warning "@nuxtjs/tailwindcss > @nuxt/postcss8 > css-loader@5.2.6" has unmet peer dependency "webpack@^4.27.0 \|\| ^5.0.0". 23:26:03.762 | warning "@nuxtjs/tailwindcss > @nuxt/postcss8 > postcss-loader@4.3.0" has unmet peer dependency "webpack@^4.0.0 \|\| ^5.0.0". 23:26:21.721 | [4/5] Building fresh packages... 23:26:28.056 | [5/5] Cleaning modules... 23:26:35.296 | Done in 55.35s. 23:26:35.340 | [info] Install devDependencies took: 55705.697276 ms 23:26:35.340 | [log] ----------------- Nuxt build ----------------- 23:26:35.625 | [log] Running nuxt build --standalone --no-lock --config-file "nuxt.config.js" /vercel/path0 23:26:55.939 | [info] Nuxt build took: 20598.954586 ms 23:26:55.940 | [log] ----------------- Install dependencies ----------------- 23:26:55.940 | [log] Using cached node_modules_prod 23:26:56.255 | yarn install v1.22.10 23:26:56.360 | [1/5] Resolving packages... 23:26:57.138 | [2/5] Fetching packages... 23:26:57.257 | [3/5] Linking dependencies... 23:26:57.258 | warning " > @fortawesome/vue-fontawesome@2.0.2" has unmet peer dependency "vue@~2". 23:27:10.345 | [4/5] Building fresh packages... 23:27:16.141 | [5/5] Cleaning modules... 23:27:19.868 | Done in 23.62s. 23:27:19.903 | [info] Install dependencies took: 23963.486984 ms 23:27:19.903 | [log] ----------------- Collect artifacts ----------------- 23:27:55.140 | [info] Collect artifacts took: 35234.772861 ms 23:27:55.317 | Failed to process build result for "index". Data: {"type":"Lambda","zipBufferLength":55828227}. 23:27:55.333 | Error: The Serverless Function "index" is 53.24mb which exceeds the maximum size limit of 50mb. Learn More: https://vercel.link/serverless-function-size
tagliala commented 3 years ago

Hi!

Thanks for being part of the Font Awesome Community.

Could you please provide a list of the packages your application is requiring under the @fortawesome scope?