I’m trying to update my custom app( Insights) on Cloud cluster ERPNext 15. It fails to build . What could I be doing wrong? This is the error message am getting.
Running build command for insights
$ cd frontend && yarn build
$ vite build -l warn --base=/assets/insights/frontend/ && yarn copy-html-entry
Browserslist: 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
Inter-DisplayRegular.woff2?v=3.19 referenced in /cloudclusters/erpnext/frappe-bench/apps/insights/frontend/src/index.css didn’t resolve at build time, it will remain unchanged to be resolved at runtime
Killed
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 (/cloudclusters/erpnext/frappe-bench/apps/frappe/esbuild/esbuild.js:451:5)
at execute (/cloudclusters/erpnext/frappe-bench/apps/frappe/esbuild/esbuild.js:128:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
status: 137,
signal: null,
output: [ null, null, null ],
pid: 2547,
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 “/usr/lib/python3.10/runpy.py”, line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File “/usr/lib/python3.10/runpy.py”, line 86, in _run_code
exec(code, run_globals)
File “/cloudclusters/erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 114, in
main()
File “/cloudclusters/erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 20, in main
click.Group(commands=commands)(prog_name=“bench”)
File “/cloudclusters/erpnext/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1157, in call
return self.main(*args, **kwargs)
File “/cloudclusters/erpnext/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1078, in main
rv = self.invoke(ctx)
File “/cloudclusters/erpnext/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/cloudclusters/erpnext/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/cloudclusters/erpnext/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/cloudclusters/erpnext/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 783, in invoke
return _callback(*args, **kwargs)
File “/cloudclusters/erpnext/frappe-bench/apps/frappe/frappe/commands/utils.py”, line 77, in build
bundle(
File “/cloudclusters/erpnext/frappe-bench/apps/frappe/frappe/build.py”, line 254, in bundle
frappe.commands.popen(command, cwd=frappe_app_path, env=get_node_env(), raise_err=True)
File “/cloudclusters/erpnext/frappe-bench/apps/frappe/frappe/commands/init.py”, line 97, in popen
raise subprocess.CalledProcessError(return, command)
subprocess.CalledProcessError: Command ‘yarn run production --run-build-command’ returned non-zero exit status 1.
What could I be doing wrong?