How to build sentry tag==10.0.0

how to build sentry tag==10.0.0 this repo

running build_assets
using node (v10.16.3)
pulled version information from ‘sentry’ module
building assets for sentry v10.0.0 (build unknown)
Browserslist: caniuse-lite is outdated. Please run next command yarn upgrade
webpack-fix-style-only-entries: removing js from style only module: select2.js
webpack-fix-style-only-entries: removing js from style only module: sentry.js
error Command failed with exit code 137.
command failed [/usr/src/sentry/bin/yarn webpack --bail] via [/usr/src/sentry]
Traceback (most recent call last):
File “/usr/src/sentry/src/sentry/utils/distutils/commands/”, line 113, in _build
File “/usr/src/sentry/src/sentry/utils/distutils/commands/”, line 134, in _build_static
self._run_yarn_command([“webpack”, “–bail”], env=env)
File “/usr/src/sentry/src/sentry/utils/distutils/commands/”, line 156, in _run_yarn_command
self._run_command([YARN_PATH] + cmd, env=env)
File “/usr/src/sentry/src/sentry/utils/distutils/commands/”, line 149, in _run_command
return check_output(cmd, cwd=self.work_path, env=env)
File “/usr/local/lib/python2.7/”, line 223, in check_output
raise CalledProcessError(retcode, cmd, output=output)
CalledProcessError: Command ‘[’/usr/src/sentry/bin/yarn’, ‘webpack’, ‘–bail’]’ returned non-zero exit status 137
unable to build Sentry’s static assets!

Well, it exited with code 137. This most likely means it ran out of memory and was OOM killed. So you probably need more memory to compile it all. I think we need at minimum 4GB free, but I don’t know off the top of my head exactly.