I have 32gb RAM on Ubuntu 22.04
Running build command for hrms
$ yarn build-pwa && yarn build-roster
$ cd frontend && yarn build
$ vite build --base=/assets/hrms/frontend/ && yarn copy-html-entry
The CJS build of Vite’s Node API is deprecated. See Troubleshooting | Vite for more details.
failed to load config from /home/frappe/develop-bench/apps/hrms/frontend/vite.config.js
error during build:
Error: Cannot find module ‘./scripts/generateInterface’
Require stack:
- /home/frappe/develop-bench/apps/hrms/node_modules/frappe-ui/vite.js
- /home/frappe/develop-bench/apps/hrms/frontend/vite.config.js
- /home/frappe/develop-bench/apps/hrms/node_modules/vite/dist/node/chunks/dep-BWSbWtLw.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
at Module._load (node:internal/modules/cjs/loader:981:27)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at require (node:internal/modules/helpers:177:18)
at Object. (/home/frappe/develop-bench/apps/hrms/node_modules/frappe-ui/vite.js:3:35)
at Module._compile (node:internal/modules/cjs/loader:1364:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1422:10)
at _require.extensions. [as .js] (file:///home/frappe/develop-bench/apps/hrms/node_modules/vite/dist/node/chunks/dep-BWSbWtLw.js:66705:9)
at Module.load (node:internal/modules/cjs/loader:1203:32)
at Module._load (node:internal/modules/cjs/loader:1019:12)
error Command failed with exit code 1.
info Visit yarn run | Yarn for documentation about this command.
error Command failed with exit code 1.
info Visit yarn run | Yarn for documentation about this command.
error Command failed with exit code 1.
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/develop-bench/apps/frappe/esbuild/esbuild.js:448:5)
at execute (/home/frappe/develop-bench/apps/frappe/esbuild/esbuild.js:125:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 134720,
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/develop-bench/apps/frappe/frappe/utils/bench_helper.py”, line 114, in
main()
File “/home/frappe/develop-bench/apps/frappe/frappe/utils/bench_helper.py”, line 20, in main
click.Group(commands=commands)(prog_name=“bench”)
File “/home/frappe/develop-bench/env/lib/python3.11/site-packages/click/core.py”, line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/develop-bench/env/lib/python3.11/site-packages/click/core.py”, line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File “/home/frappe/develop-bench/env/lib/python3.11/site-packages/click/core.py”, line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/develop-bench/env/lib/python3.11/site-packages/click/core.py”, line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/develop-bench/env/lib/python3.11/site-packages/click/core.py”, line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/develop-bench/env/lib/python3.11/site-packages/click/core.py”, line 783, in invoke
return _callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/develop-bench/apps/frappe/frappe/commands/utils.py”, line 77, in build
bundle(
File “/home/frappe/develop-bench/apps/frappe/frappe/build.py”, line 257, in bundle
frappe.commands.popen(command, cwd=frappe_app_path, env=get_node_env(), raise_err=True)
File “/home/frappe/develop-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 && cd billing && yarn build’ returned non-zero exit status 1.