# Netlify build error while deploying yarn workspaces website

**URL:** <https://answers.netlify.com/t/netlify-build-error-while-deploying-yarn-workspaces-website/79401>\
**Category:** Support\
**Tags:** nextjs, building, deployment\
**Created:** [November 16, 2022, 10:10pm UTC](https://answers.netlify.com/t/netlify-build-error-while-deploying-yarn-workspaces-website/79401 "2022-11-16T22:10:59Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![AhmadJ](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@AhmadJ](https://answers.netlify.com/u/AhmadJ)\
**Post date:** [November 16, 2022, 10:10pm UTC](https://answers.netlify.com/t/netlify-build-error-while-deploying-yarn-workspaces-website/79401/1 "2022-11-16T22:10:59Z")

</div>

Hi everyone!

I have two websites inside my yarn workspaces, one of them works just fine and builds correctly on Netlify and the other one doesn’t. I’m not sure what the issue is and the error logs don’t provide enough info either. The build logs and site name are all attached.

I have already tried setting the CI env variable.

Sitename: [https://superlative-cucurucho-7fcae9.netlify.app/](https://superlative-cucurucho-7fcae9.netlify.app/)

```auto
2:55:15 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:15 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/canadian-rockies-alpine-explorer/USD/long") is 962 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:15 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:15 PM: Warning: data for page "/explore/[slug]" (path "/explore/travel-with-peace-of-mind") is 3.1 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:15 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:15 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/churchill-northern-lights-winter/USD/short") is 904 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:15 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:15 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/northern-lights-vacation/USD/short") is 1.04 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:15 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:16 PM: Warning: data for page "/explore/[slug]" (path "/explore/banff-train") is 2.35 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:16 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:16 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/7-day-polar-bear-package/USD/short") is 802 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:16 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:16 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/7-day-polar-bear-package/USD/long") is 800 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:16 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:16 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/ultimate-rockies-rail/CAD/short") is 2.72 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:16 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:16 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/7-day-polar-bear-package/CAD/long") is 800 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:16 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:16 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/northern-lights-vacation/CAD/short") is 1.04 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:16 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:16 PM: info - Generating static pages (71/285)
2:55:16 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/coast-to-coast-by-rail/USD/short") is 5.37 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:16 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:17 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/northern-lights-vacation/USD/long") is 1.03 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:17 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:17 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/ultimate-rockies-rail/USD/long") is 2.7 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:17 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:17 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/northern-lights-vacation/CAD/long") is 1.03 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:17 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:17 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/7-day-polar-bear-package/CAD/short") is 802 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:17 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:17 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/coast-to-coast-by-rail/CAD/long") is 5.36 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:17 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:17 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/coast-to-coast-by-rail/CAD/short") is 5.37 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:17 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:17 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/canadian-rockies-discovery-tour/USD/long") is 2.24 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:17 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:17 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/canadian-rockies-discovery-tour/USD/short") is 2.25 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:17 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:17 PM: Warning: data for page "/explore/[slug]" (path "/explore/rocky-mountaineer-trips") is 2.18 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:17 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:17 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/canadian-rockies-discovery-tour/CAD/short") is 2.25 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:17 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:17 PM: Warning: data for page "/component-library" is 19.3 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:17 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:17 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/complete-canadian-rockies-rail/USD/short") is 2.77 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:17 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:17 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/complete-canadian-rockies-rail/USD/long") is 2.75 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:17 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:17 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/canadian-rockies-discovery-tour/CAD/long") is 2.24 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:17 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:17 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/eastern-canada-railway/USD/short") is 2.32 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:17 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:17 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/complete-canadian-rockies-rail/CAD/short") is 2.77 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:17 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:18 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/complete-canadian-rockies-rail/CAD/long") is 2.75 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:18 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:18 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/eastern-canada-railway/CAD/short") is 2.32 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:18 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:18 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/rockies-winter-rail-classic/USD/long") is 2.95 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:18 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:18 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/rockies-winter-rail-classic/CAD/short") is 2.95 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:18 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:18 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/rockies-winter-rail-classic/USD/short") is 2.95 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:18 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:18 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/eastern-canada-railway/CAD/long") is 2.3 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:18 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:18 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/eastern-canada-railway/USD/long") is 2.3 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:18 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:18 PM: Warning: data for page "/explore/[slug]" (path "/explore/sleeping-on-the-train") is 4.77 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:18 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:19 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/coast-to-coast-by-rail/USD/long") is 5.36 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:19 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:19 PM: Warning: data for page "/trips" is 16.4 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:19 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:19 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/rockies-winter-rail-classic/CAD/long") is 2.95 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:19 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:19 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/montreal-quebec-experience/CAD/short") is 1.82 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:19 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:19 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/trans-canada-railway-train/CAD/long") is 1.99 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:19 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:19 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/trans-canada-railway-train/CAD/short") is 2 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:19 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:19 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/montreal-quebec-experience/CAD/long") is 1.79 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:19 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:19 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/trans-canada-railway-train/USD/short") is 2 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:19 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:19 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/trans-canada-railway-train/USD/long") is 1.99 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:19 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:19 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/montreal-quebec-experience/USD/short") is 1.82 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:19 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:19 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/montreal-quebec-experience/USD/long") is 1.79 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:19 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:20 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/canadian-history-and-culture-by-rail/CAD/long") is 4.24 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:20 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:20 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/rockies-grand-rail-circle/USD/short") is 2.79 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:20 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:20 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/northern-wilderness-rail-adventure/USD/long") is 2.34 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:20 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:20 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/northern-wilderness-rail-adventure/CAD/short") is 2.35 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:20 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:20 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/luxury-journey-across-canada-by-train/USD/short") is 2.36 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:20 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:20 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/luxury-journey-across-canada-by-train/CAD/short") is 2.36 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:20 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:20 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/northern-wilderness-rail-adventure/USD/short") is 2.35 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:20 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:20 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/northern-wilderness-rail-adventure/CAD/long") is 2.34 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:20 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:20 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/rockies-grand-rail-circle/CAD/long") is 2.78 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:20 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:20 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/rockies-grand-rail-circle/CAD/short") is 2.79 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:20 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:20 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/luxury-journey-across-canada-by-train/USD/long") is 2.36 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:20 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:20 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/canadian-history-and-culture-by-rail/USD/short") is 4.26 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:20 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:20 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/rockies-grand-rail-circle/USD/long") is 2.78 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:20 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:20 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/canadian-history-and-culture-by-rail/CAD/short") is 4.26 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:20 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:20 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/best-value-rockies-vacation-by-rail/USD/long") is 2.65 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:20 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:21 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/luxury-journey-across-canada-by-train/CAD/long") is 2.36 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:21 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:21 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/canadian-history-and-culture-by-rail/USD/long") is 4.24 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:21 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:21 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/best-value-rockies-vacation-by-rail/USD/short") is 2.67 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:21 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:21 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/best-value-rockies-vacation-by-rail/CAD/short") is 2.67 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:21 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:21 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/cross-country-train-trip/CAD/long") is 1.72 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:21 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:21 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/best-value-rockies-vacation-by-rail/CAD/long") is 2.65 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:21 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:21 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/cross-country-train-trip/CAD/short") is 1.73 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:21 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:21 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/lords-of-the-wilderness-bear-viewing/USD/long") is 1.75 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:21 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:21 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/cross-country-train-trip/USD/long") is 1.72 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:21 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:21 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/lords-of-the-wilderness-bear-viewing/CAD/short") is 1.75 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:21 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:21 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/cross-country-train-trip/USD/short") is 1.73 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:21 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:21 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/lords-of-the-wilderness-bear-viewing/USD/short") is 1.75 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:21 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:22 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/lords-of-the-wilderness-bear-viewing/CAD/long") is 1.75 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:22 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:22 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/cross-country-journey-winter/USD/long") is 1.47 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:22 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:22 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/vancouver-to-toronto-train-tour/USD/short") is 2.96 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:22 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:22 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/cross-country-journey-winter/USD/short") is 1.47 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:22 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:22 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/essential-rocky-mountaineer-rail/CAD/long") is 2.28 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:22 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:30 PM: Creating deploy upload records
2:55:22 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/cross-country-journey-winter/CAD/long") is 1.47 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:22 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:22 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/cross-country-journey-winter/CAD/short") is 1.47 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:22 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:31 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
2:55:22 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/essential-rocky-mountaineer-rail/USD/long") is 2.28 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:22 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:22 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/vancouver-to-toronto-train-tour/USD/long") is 2.94 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:22 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:22 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/trans-canada-winter-rail/USD/short") is 2.61 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:22 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:22 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/vancouver-to-toronto-train-tour/CAD/short") is 2.96 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:22 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:22 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/essential-rocky-mountaineer-rail/USD/short") is 2.3 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:22 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:22 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/vancouver-to-toronto-train-tour/CAD/long") is 2.94 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:22 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:22 PM: info - Generating static pages (142/285)
2:55:22 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/train-across-canada/USD/long") is 3.32 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:22 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:23 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/essential-rocky-mountaineer-rail/CAD/short") is 2.3 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:23 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:23 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/trans-canada-winter-rail/USD/long") is 2.61 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:23 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:23 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/trans-canada-winter-rail/CAD/long") is 2.61 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:23 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:23 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/train-across-canada/USD/short") is 3.34 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:23 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:23 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/train-across-canada/CAD/long") is 3.32 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:23 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:23 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/train-across-canada/CAD/short") is 3.34 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:23 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:23 PM: Warning: data for page "/print/[slug]/[currency]/[variant]" (path "/print/trans-canada-winter-rail/CAD/short") is 2.61 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:23 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:24 PM: Warning: data for page "/trips/[slug]" (path "/trips/churchill-northern-lights-winter") is 4.19 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:24 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:24 PM: Warning: data for page "/trips/[slug]" (path "/trips/northern-lights-vacation") is 3.76 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:24 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:24 PM: Warning: data for page "/trips/[slug]" (path "/trips/essential-rockies-alaska-cruise") is 5.84 MB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
2:55:24 PM: See more info here: https://nextjs.org/docs/messages/large-page-data
2:55:26 PM: ​
2:55:26 PM: ────────────────────────────────────────────────────────────────
2:55:26 PM: "build.command" failed                                        
2:55:26 PM: ────────────────────────────────────────────────────────────────
2:55:26 PM: ​
2:55:26 PM: Error message
2:55:26 PM: Command failed with exit code 129: CI= yarn workspace ctv build (https://ntl.fyi/exit-code-129)
2:55:26 PM: ​
2:55:26 PM: Error location
2:55:26 PM: In Build command from Netlify app:
2:55:26 PM: CI= yarn workspace ctv build
2:55:26 PM: ​
2:55:26 PM: Resolved config
2:55:26 PM: build:
2:55:26 PM: command: CI= yarn workspace ctv build
2:55:26 PM: commandOrigin: ui
2:55:26 PM: environment:
2:55:26 PM: - CANONICAL_BASE
2:55:26 PM: - DATOCMS_API_TOKEN
2:55:26 PM: - NETLIFY_NEXT_PLUGIN_SKIP
2:55:26 PM: - NETLIFY_USE_YARN
2:55:26 PM: - NODE_ENV
2:55:26 PM: - NODE_VERSION
2:55:26 PM: - REACT_APP_BRANDFOLDER_API_KEY
2:55:26 PM: publish: /opt/build/repo/packages/ctv/out
2:55:26 PM: publishOrigin: ui
2:55:26 PM: Caching artifacts
2:55:26 PM: Started saving build plugins
2:55:26 PM: Finished saving build plugins
2:55:26 PM: Started saving yarn cache
2:55:27 PM: Finished saving yarn cache
2:55:27 PM: Started saving pip cache
2:55:27 PM: Finished saving pip cache
2:55:27 PM: Started saving emacs cask dependencies
2:55:27 PM: Finished saving emacs cask dependencies
2:55:27 PM: Started saving maven dependencies
2:55:27 PM: Finished saving maven dependencies
2:55:27 PM: Started saving boot dependencies
2:55:27 PM: Finished saving boot dependencies
2:55:27 PM: Started saving rust rustup cache
2:55:27 PM: Finished saving rust rustup cache
2:55:27 PM: Started saving go dependencies
2:55:27 PM: Finished saving go dependencies
2:55:30 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
2:55:31 PM: Failing build: Failed to build site
2:55:31 PM: Finished processing build request in 3m53.957201584s

```

---

<div class="post-metadata">

**Author:** ![AhmadJ](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@AhmadJ](https://answers.netlify.com/u/AhmadJ)\
**Post date:** [November 17, 2022, 11:00pm UTC](https://answers.netlify.com/t/netlify-build-error-while-deploying-yarn-workspaces-website/79401/2 "2022-11-17T23:00:58Z")

</div>

Please any help would be appreciated! @fool 🙂

---

<div class="post-metadata">

**Author:** ![kylesloper](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/kylesloper/32/18398_2.png) [@kylesloper](https://answers.netlify.com/u/kylesloper)\
**Post date:** [November 17, 2022, 11:20pm UTC](https://answers.netlify.com/t/netlify-build-error-while-deploying-yarn-workspaces-website/79401/3 "2022-11-17T23:20:29Z")

</div>

Hi @AhmadJ please don’t mention individual users in attempts to get a faster response.

Anyways, this doesn’t seem to be enough info to determine the cause. Can you please share the Git Repo and build settings for this site?

---

<div class="post-metadata">

**Author:** ![AhmadJ](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@AhmadJ](https://answers.netlify.com/u/AhmadJ)\
**Post date:** [November 17, 2022, 11:43pm UTC](https://answers.netlify.com/t/netlify-build-error-while-deploying-yarn-workspaces-website/79401/4 "2022-11-17T23:43:18Z")

</div>

Hi @kylesloper, I’m sorry I didn’t know.  
I can’t seem to share the git repo since its a company private repo and the build settings are:

 ![Screen Shot 2022-11-17 at 4.42.03 PM](https://global.discourse-cdn.com/netlify/original/3X/e/9/e980859afc389c7dc64b1cd3603b4915d19ce591.png)

Please let me know if you need anything else, here is one of the failed deploys: [Netlify App](https://app.netlify.com/sites/superlative-cucurucho-7fcae9/deploys/6376bb15820c13245b2307de)

And repo looks like this:

 ![Screen Shot 2022-11-17 at 4.43.03 PM](https://global.discourse-cdn.com/netlify/original/3X/3/6/364666791f5118b2bed80d4d0063e6d520d8ca26.png)

---

<div class="post-metadata">

**Author:** ![AhmadJ](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@AhmadJ](https://answers.netlify.com/u/AhmadJ)\
**Post date:** [November 17, 2022, 11:53pm UTC](https://answers.netlify.com/t/netlify-build-error-while-deploying-yarn-workspaces-website/79401/5 "2022-11-17T23:53:45Z")

</div>

To add on to my response, I also ran this build on my local in a local netlify build image and it was successful. Its only on Netlify servers that it seems to fails. Ran it in GitHub Actions, Cloudflare and works everywhere else just fine

---

<div class="post-metadata">

**Author:** ![hrishikesh](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hrishikesh/32/74607_2.png) [@hrishikesh](https://answers.netlify.com/u/hrishikesh)\
**Post date:** [November 20, 2022, 1:37pm UTC](https://answers.netlify.com/t/netlify-build-error-while-deploying-yarn-workspaces-website/79401/6 "2022-11-20T13:37:14Z")

</div>

This should be fixed by Friday, I suppose? We saw a problem where a few folks reported that Yarn wasn’t working. We rolled back a change that caused this and everything has been working since then.

---

<div class="post-metadata">

**Author:** ![AhmadJ](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@AhmadJ](https://answers.netlify.com/u/AhmadJ)\
**Post date:** [November 21, 2022, 4:06pm UTC](https://answers.netlify.com/t/netlify-build-error-while-deploying-yarn-workspaces-website/79401/7 "2022-11-21T16:06:09Z")

</div>

I tried again today but no luck unfortunately ☹  
I’m getting the same exact issue.

---

<div class="post-metadata">

**Author:** ![AhmadJ](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@AhmadJ](https://answers.netlify.com/u/AhmadJ)\
**Post date:** [November 21, 2022, 7:02pm UTC](https://answers.netlify.com/t/netlify-build-error-while-deploying-yarn-workspaces-website/79401/8 "2022-11-21T19:02:12Z")

</div>

Just for future reference for anyone else that comes across the issue, The problem was that we were using more build memory size than provided to a pro user, around 11GiB at this point. So it’s best to optimize builds to make builds work again.

---

<div class="post-metadata">

**Author:** ![hillary](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hillary/32/21132_2.png) [@hillary](https://answers.netlify.com/u/hillary)\
**Post date:** [November 21, 2022, 7:29pm UTC](https://answers.netlify.com/t/netlify-build-error-while-deploying-yarn-workspaces-website/79401/9 "2022-11-21T19:29:09Z")

</div>

thanks so much for coming back and sharing 🙌

---

<div class="post-metadata">

**Author:** ![AhmadJ](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@AhmadJ](https://answers.netlify.com/u/AhmadJ)\
**Post date:** [November 21, 2022, 10:51pm UTC](https://answers.netlify.com/t/netlify-build-error-while-deploying-yarn-workspaces-website/79401/10 "2022-11-21T22:51:39Z")

</div>

Sorry, update on my last reply, I see that its still happening, build still fails on Netlify servers even though it passes locally @hrishikesh @hillary. I tried following steps for running a local build bot to test it and I am seeing local build taking on average 4GiB at max. It should be going through then since I have a pro account and have a limit of around 11GiB

---

<div class="post-metadata">

**Author:** ![audrey](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/audrey/32/24328_2.png) [@audrey](https://answers.netlify.com/u/audrey)\
**Post date:** [November 22, 2022, 7:35pm UTC](https://answers.netlify.com/t/netlify-build-error-while-deploying-yarn-workspaces-website/79401/12 "2022-11-22T19:35:14Z")

</div>

Hey @AhmadJ , sorry to hear you’re still having trouble with builds!

Could you link us to the deploy link in Netlify where the deploy failed but you observed the build locally using 4GB of memory?

---

<div class="post-metadata">

**Author:** ![AhmadJ](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@AhmadJ](https://answers.netlify.com/u/AhmadJ)\
**Post date:** [November 22, 2022, 8:42pm UTC](https://answers.netlify.com/t/netlify-build-error-while-deploying-yarn-workspaces-website/79401/13 "2022-11-22T20:42:06Z")

</div>

Here @audrey: [Netlify App](https://app.netlify.com/sites/superlative-cucurucho-7fcae9/deploys/637cfae4ce97bd4bf9131a52)  
Thanks for getting back!

---

<div class="post-metadata">

**Author:** ![audrey](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/audrey/32/24328_2.png) [@audrey](https://answers.netlify.com/u/audrey)\
**Post date:** [November 22, 2022, 9:39pm UTC](https://answers.netlify.com/t/netlify-build-error-while-deploying-yarn-workspaces-website/79401/14 "2022-11-22T21:39:54Z")

</div>

Thanks for that @AhmadJ !

I looked into that build and our logs show the build exceeded 11GB of memory usage. This site is using the default build image which only guarantees up to 6 virtual CPU and 11 GB of memory. Although more is possible if the build system is not being heavily used at the time of build, that is the only guarantee.

You’ll want to try to reduce memory usage using our support guides:

> [@\[Support Guide\] Making sure your builds use appropriate resources for Netlify's build system](https://answers.netlify.com/t/support-guide-making-sure-your-builds-use-appropriate-resources-for-netlifys-build-system/5349):
>
> updated in Dec 2022 Hopefully, your builds at Netlify “just work”, once you have things configured. That’s the intention and the common case, but for those times when your reality falls a bit short of our dream, this article talks in detail about some of the limitations that customers run into while building and how to work around them. The operation of Netlify’s build system is pretty well documented in several places such as: a somewhat conversational [“how it works” guide.](https://www.netlify.com/blog/2016/10/18/how-our-build-bots-build-sites/)[our official do…](https://docs.netlify.com/configure-builds/overview/)

and

> [@\[Support Guide\] What can I do if my build fails for memory-overallocation-related errors?](https://answers.netlify.com/t/support-guide-what-can-i-do-if-my-build-fails-for-memory-overallocation-related-errors/36549):
>
> last updated by Netlify Support Nov 2023 Are you struggling to get your build working? Most build errors are caused by problems in code or data, and for those errors, our best guide / general starting place for debugging build troubles is this one: But, sometimes your build is working fine and suddenly ends with some inscrutable errors that don’t seem to be “about” your code or site even. Perhaps you see an error message like this in your builds? 2:28:35 PM: \<--- Last few GCs ---\> 2:28:35…

You’ve mentioned seeing on average 4GiB of memory usage on your local build. You’ll want to test using the local build process mentioned in the first support guide ☝ to make sure you’re emulating Netlify’s buildbot on your local machine.

Hope that helps, please keep us posted.

---

<div class="post-metadata">

**Author:** ![AhmadJ](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@AhmadJ](https://answers.netlify.com/u/AhmadJ)\
**Post date:** [November 22, 2022, 11:56pm UTC](https://answers.netlify.com/t/netlify-build-error-while-deploying-yarn-workspaces-website/79401/15 "2022-11-22T23:56:06Z")

</div>

Seems like it might be related to yarn workspaces. Could you point me in the direction of a possible solution @Audrey? I followed the steps above but no luck so far.

---

<div class="post-metadata">

**Author:** ![hrishikesh](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hrishikesh/32/74607_2.png) [@hrishikesh](https://answers.netlify.com/u/hrishikesh)\
**Post date:** [November 27, 2022, 1:32pm UTC](https://answers.netlify.com/t/netlify-build-error-while-deploying-yarn-workspaces-website/79401/17 "2022-11-27T13:32:33Z")

</div>

Hey @AhmadJ,

Since this thread is also going on in the helpdesk, let’s continue the discussion there (to streamline on one platform).
