I am facing the issue and when forcing the build i am facing the below error:
frappe@bench-0021-000003-app:~/frappe-bench/sites$ bench build --app helpdesk --force
Application Assets Linked
yarn run v1.22.22
$ node esbuild --production --apps helpdesk --run-build-command
File Size
DONE Total Build Time: 178.297ms
Running build command for helpdesk
$ cd desk && yarn build
$ vite build
[unplugin-vue-components] component “Autocomplete”(/home/frappe/frappe-bench/apps/helpdesk/desk/src/components/frappe-ui/Autocomplete.vue) has naming conflicts with other components, ignored.
[unplugin-vue-components] component “Autocomplete”(/home/frappe/frappe-bench/apps/helpdesk/desk/src/components/frappe-ui/Autocomplete.vue) has naming conflicts with other components, ignored.
vite v4.5.5 building for production…
transforming (49) …/node_modules/frappe-ui/src/components/Input.vueBrowserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: GitHub - browserslist/update-db: CLI tool to update caniuse-lite to refresh target browsers from Browserslist config
transforming (106) …/node_modules/dayjs/esm/plugin/isToday/index.js
Inter-DisplayRegular.woff2?v=3.19 referenced in /home/frappe/frappe-bench/apps/helpdesk/desk/src/index.css didn’t resolve at build time, it will remain unchanged to be resolved at runtime
transforming (361) src/components/CustomActions.vueKilled
error Command failed with exit code 137.
info Visit yarn run | Yarn for documentation about this command.
error Command failed with exit code 137.
info Visit yarn run | Yarn for documentation about this command.
Error: Command failed: yarn build
at checkExecSyncError (node:child_process:885:11)
at execSync (node:child_process:957:15)
at run_build_command_for_apps (/home/frappe/frappe-bench/apps/frappe/esbuild/esbuild.js:448:5)
at execute (/home/frappe/frappe-bench/apps/frappe/esbuild/esbuild.js:125:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
status: 137,
signal: null,
output: [ null, null, null ],
pid: 65931,
stdout: null,
stderr: null
}
error Command failed with exit code 1.
info Visit yarn run | Yarn for documentation about this command.
Traceback (most recent call last):
File “”, line 198, in _run_module_as_main
File “”, line 88, in _run_code
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 114, in
main()
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 20, in main
click.Group(commands=commands)(prog_name=“bench”)
File “/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1161, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1082, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1697, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1697, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/env/lib/python3.11/site-packages/click/core.py”, line 788, in invoke
return _callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/utils.py”, line 77, in build
bundle(
File “/home/frappe/frappe-bench/apps/frappe/frappe/build.py”, line 255, in bundle
frappe.commands.popen(command, cwd=frappe_app_path, env=get_node_env(), raise_err=True)
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/init.py”, line 97, in popen
raise subprocess.CalledProcessError(return, command)
subprocess.CalledProcessError: Command ‘yarn run production --apps helpdesk --run-build-command’ returned non-zero exit status 1.
frappe@bench-0021-000003-app:~/frappe-bench/sites$