I have installed frappe insights app to my server however when I run bench build I get the following errors.
Running build command for insights
$ cd frontend && yarn build
$ vite build -l warn --base=/assets/insights/frontend/ && yarn copy-html-entry && yarn copy-html-entry2
Inter-DisplayRegular.woff2?v=3.19 referenced in /home/frappe/frappe-bench/apps/insights/frontend/src/index.css didn’t resolve at build time, it will remain unchanged to be resolved at runtime
Inter-DisplayRegular.woff2?v=3.19 referenced in /home/frappe/frappe-bench/apps/insights/frontend/src2/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:890:11)
at execSync (node:child_process:962:15)
at run_build_command_for_apps (/home/frappe/frappe-bench/apps/frappe/esbuild/esbuild.js:451:5)
at execute (/home/frappe/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: 830975,
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 “/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.10/site-packages/click/core.py”, line 1157, in call
return self.main(*args, **kwargs)
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1078, in main
rv = self.invoke(ctx)
File “/home/frappe/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 “/home/frappe/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 “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/frappe/frappe-bench/env/lib/python3.10/site-packages/click/core.py”, line 783, 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 254, 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 --run-build-command’ returned non-zero exit status 1.