Cloudflare Pages / Build with Yarn berry crashes

I’ve been testing cloudflare pages, but the build always fails.
The ‘Initializing build environment’ step takes over 2 minutes, and found a similar issue that I’m suffering now which shows Warning: Logs exceeded 5000 line limit and have been truncated.

I’m currently using Yarn berry(v3.0.0).
Does Cloudflare Pages doesn’t support Yarn Berry(over v3.0)?

Build log:

11:46:43.825	Initializing build environment. This may take up to a few minutes to complete
11:49:02.728	Success: Finished initializing build environment
11:49:02.728	Cloning repository...
11:49:04.805	Success: Finished cloning repository files
11:49:04.939	Installing dependencies
11:49:04.942	Python version set to 2.7
11:49:06.101	v12.18.0 is already installed.
11:49:06.517	Now using node v12.18.0 (npm v6.14.4)
11:49:06.555	Started restoring cached build plugins
11:49:06.558	Finished restoring cached build plugins
11:49:06.666	Attempting ruby version 2.7.1, read from environment
11:49:07.563	Using ruby version 2.7.1
11:49:07.796	Using PHP version 5.6
11:49:07.822	5.2 is already installed.
11:49:07.827	Using Swift version 5.2
11:49:07.827	Started restoring cached node modules
11:49:07.829	Finished restoring cached node modules
11:49:07.831	Started restoring cached yarn cache
11:49:07.833	Finished restoring cached yarn cache
11:49:07.837	Installing yarn at version 1.22.4
11:49:07.840	e[37mInstalling Yarn!e[0m
11:49:07.841	e[36m> Downloading tarball...e[0m
11:49:07.846	
11:49:07.846	[1/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz --> /tmp/yarn.tar.gz.tkc5nxbhPf
11:49:07.847	  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
11:49:07.847	                                 Dload  Upload   Total   Spent    Left  Speed
11:49:07.893	
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100    79  100    79    0     0   1693      0 --:--:-- --:--:-- --:--:--  1717
11:49:07.928	
100    93  100    93    0     0   1128      0 --:--:-- --:--:-- --:--:--  1128
11:49:08.005	
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   625  100   625    0     0   3932      0 --:--:-- --:--:-- --:--:-- 31250
11:49:08.056	
100 1215k  100 1215k    0     0  5788k      0 --:--:-- --:--:-- --:--:-- 5788k
11:49:08.056	
11:49:08.057	[2/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz.asc --> /tmp/yarn.tar.gz.tkc5nxbhPf.asc
11:49:08.058	  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
11:49:08.058	                                 Dload  Upload   Total   Spent    Left  Speed
11:49:08.076	
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100    83  100    83    0     0   4447      0 --:--:-- --:--:-- --:--:--  4611
11:49:08.080	
100    97  100    97    0     0   4435      0 --:--:-- --:--:-- --:--:--  4435
11:49:08.100	
100   629  100   629    0     0  14744      0 --:--:-- --:--:-- --:--:-- 14744
11:49:08.105	
100  1028  100  1028    0     0  21532      0 --:--:-- --:--:-- --:--:-- 21532
11:49:08.113	e[36m> Verifying integrity...e[0m
11:49:08.140	gpg: Signature made Mon 09 Mar 2020 03:52:13 PM UTC using RSA key ID 69475BAA
11:49:08.146	gpg: Good signature from "Yarn Packaging <[email protected]>"
11:49:08.149	gpg: Note: This key has expired!
11:49:08.149	Primary key fingerprint: 72EC F46A 56B4 AD39 C907  BBB7 1646 B01B 86E5 0310
11:49:08.149	     Subkey fingerprint: 6D98 490C 6F1A CDDD 448E  4595 4F77 6793 6947 5BAA
11:49:08.150	e[32m> GPG signature looks goode[0m
11:49:08.150	e[36m> Extracting to ~/.yarn...e[0m
11:49:08.195	e[36m> Adding to $PATH...e[0m
11:49:08.199	e[36m> We've added the following to your /opt/buildhome/.bashrc
11:49:08.199	> If this isn't the profile of your current shell then please add the following to your correct profile:
11:49:08.199	   
11:49:08.199	export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
11:49:08.199	e[0m
11:49:08.458	e[32m> Successfully installed Yarn 1.22.4! Please open another terminal where the `yarn` command will now be available.e[0m
11:49:09.113	Installing NPM modules using Yarn version 3.0.0
11:49:09.830	➤ YN0050: The cache-folder option has been deprecated; use rc settings instead

...

11:49:25.882	➤ YN0013: │ [email protected]:2.1.0 can't be found in the cache and will be fetched from the remote registry
11:49:25.882	➤ YN0013: │ [email protected]:3.0.0 can't be found in the cache and will be fetched from the remote registry
11:49:25.882	➤ YN0013: │ [email protected]:3.1.0 can't be found in the cache and will be fetched from the remote registry
11:49:25.882	➤ YN0013: │ [email protected]:4.0.1 can't be found in the cache and will be fetched from the remote registry
11:50:56.696	Warning: Logs exceeded 5000 line limit and have been truncated

That’s berry sad. I just came here to say that.

Kidding.

How long does the build take overall? I know builds have a 24- or 25-min timeout so if you’re running over…

Hi, it takes almost 5~6 min. and preparing container is the most time-spending step.

I don’t have much experience with Yarn Berry but my first suggestion is to try a “Hello World” app, see if that succeeds. If it does not, you’ll have some answer to work off of…

Are you able to successfully build your app on other online platforms? That’s another possible answer in the waiting…

Finally, there’s a Discord where all the cool kids hang out: Cloudflare Workers. You’ll likely get your answers there.