bench get-app file:///home/frappe/context/apps/crm_custom
Getting whitepanda-crm-customizations
$ git clone file:///home/frappe/context/apps/crm_custom --depth 1 --origin upstream
Cloning into ‘crm_custom’…
Ignoring dependencies of file:///home/frappe/context/apps/crm_custom. To install dependencies use --resolve-deps
Installing crm_custom
$ uv pip install --quiet --upgrade -e /home/frappe/frappe-bench/apps/crm_custom --python /home/frappe/frappe-bench/env/bin/python
$ yarn install --check-files
yarn install v1.22.22
info No lockfile found.
[1/4] Resolving packages…
[2/4] Fetching packages…
[3/4] Linking dependencies…
[4/4] Building fresh packages…
success Saved lockfile.
$ cd frontend && yarn install --check-files
yarn install v1.22.22
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages…
[2/4] Fetching packages…
[3/4] Linking dependencies…
warning " > @tiptap/extension-paragraph@2.26.1" has unmet peer dependency “@tiptap/core@^2.7.0”.
warning " > vite-plugin-pwa@0.15.2" has incorrect peer dependency “vite@^3.1.0 || ^4.0.0”.
warning " > vite-plugin-pwa@0.15.2" has unmet peer dependency “workbox-build@^6.5.4”.
warning " > vite-plugin-pwa@0.15.2" has unmet peer dependency “workbox-window@^6.5.4”.
[4/4] Building fresh packages…
Done in 42.09s.
Done in 42.26s.
$ bench build --app crm_custom
Linking /home/frappe/frappe-bench/apps/frappe/frappe/public to ./assets/frappe
/home/frappe/frappe-bench/apps/frappe/node_modules to ./assets/frappe/node_modules
/home/frappe/frappe-bench/apps/crm_custom/crm_custom/public to ./assets/crm_custom
/home/frappe/frappe-bench/apps/crm_custom/node_modules to ./assets/crm_custom/node_modules
/home/frappe/frappe-bench/apps/erpnext/erpnext/public to ./assets/erpnext
/home/frappe/frappe-bench/apps/erpnext/node_modules to ./assets/erpnext/node_modules
/home/frappe/frappe-bench/apps/whitepanda_erp_customapp/whitepanda_erp_customapp/public to ./assets/whitepanda_erp_customapp
/home/frappe/frappe-bench/apps/crm/crm/public to ./assets/crm
/home/frappe/frappe-bench/apps/crm/node_modules to ./assets/crm/node_modules
Application Assets Linked
yarn run v1.22.22
$ node esbuild --production --apps crm_custom --run-build-command
File Size
DONE Total Build Time: 94.477ms
Running build command for crm_custom
$ cd frontend && yarn build
$ node ./custom-build.cjs
Copying original CRM src…
Applying overrides…
Done.
$ yarn prebuild && vite build --base=/assets/crm/frontend/ && yarn copy-html-entry
$ node ./custom-build.cjs
Copying original CRM src…
Applying overrides…
Done.
plugin ‘vite-plugin-pwa:build’ uses deprecated ‘enforce’ option. Use ‘order’ option instead.
plugin ‘vite-plugin-pwa:build’ uses deprecated ‘transform’ option. Use ‘handler’ option instead.
[unplugin-vue-components] component “DataFields”(/home/frappe/frappe-bench/apps/crm_custom/frontend/src/components/Modals/DataFields.vue) has naming conflicts with other components, ignored.
[unplugin-vue-components] component “Section”(/home/frappe/frappe-bench/apps/crm_custom/frontend/src/components/Section.vue) has naming conflicts with other components, ignored.
vite v5.4.21 building for production…
transforming…
[baseline-browser-mapping] The data in this module is over two months old. To ensure accurate Baseline data, please update: npm i baseline-browser-mapping@latest -D
✓ 2445 modules transformed.
PWA v0.15.2
mode generateSW
precache 114 entries (4497.68 KiB)
files generated
../crm_custom/public/frontend/sw.js.map
../crm_custom/public/frontend/sw.js
../crm_custom/public/frontend/workbox-06233651.js.map
../crm_custom/public/frontend/workbox-06233651.js
warnings
assets/index-CBKtGNnm.css is 2.57 MB, and won’t be precached. Configure maximumFileSizeToCacheInBytes to change this limit.
x Build failed in 13.46s
error during build:
[vite-plugin-pwa:build] There was an error during the build:
src/composables/useKeyboardShortcuts.js (2:9): “isDialogOpen” is not exported by “src/utils/dialogs.jsx”, imported by “src/composables/useKeyboardShortcuts.js”.
Additionally, handling the error in the ‘buildEnd’ hook caused the following error:
src/composables/useKeyboardShortcuts.js (2:9): “isDialogOpen” is not exported by “src/utils/dialogs.jsx”, imported by “src/composables/useKeyboardShortcuts.js”.
file: /home/frappe/frappe-bench/apps/crm_custom/frontend/src/composables/useKeyboardShortcuts.js:2:9
1: import { onMounted, onBeforeUnmount, unref } from ‘vue’
2: import { isDialogOpen } from ‘@/utils/dialogs’
^
3:
4: /**
at getRollupError (file:///home/frappe/frappe-bench/apps/crm_custom/frontend/node_modules/vite/node_modules/rollup/dist/es/shared/parseAst.js:402:41)
at file:///home/frappe/frappe-bench/apps/crm_custom/frontend/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:23444:39
at async catchUnfinishedHookActions (file:///home/frappe/frappe-bench/apps/crm_custom/frontend/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:22902:16)
at async rollupInternal (file:///home/frappe/frappe-bench/apps/crm_custom/frontend/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:23427:5)
at async build (file:///home/frappe/frappe-bench/apps/crm_custom/frontend/node_modules/vite/dist/node/chunks/dep-BK3b2jBa.js:65709:14)
at async CAC.<anonymous> (file:///home/frappe/frappe-bench/apps/crm_custom/frontend/node_modules/vite/dist/node/cli.js:829:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Command failed: yarn build
at genericNodeError (node:internal/errors:985:15)
at wrappedFn (node:internal/errors:539:14)
at checkExecSyncError (node:child_process:925:11)
at execSync (node:child_process:997:15)
at run_build_command_for_apps (/home/frappe/frappe-bench/apps/frappe/esbuild/esbuild.js:540:3)
at execute (/home/frappe/frappe-bench/apps/frappe/esbuild/esbuild.js:142:23) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 171,
stdout: null,
stderr: null
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 48, in invoke
return super().invoke(ctx)
~~~~~~~~~~~~~~^^^^^
File “/home/frappe/frappe-bench/env/lib/python3.14/site-packages/click/core.py”, line 1873, in invoke
return process_result(sub_ctx.command.invoke(sub_ctx))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File “/home/frappe/frappe-bench/env/lib/python3.14/site-packages/click/core.py”, line 1269, in invoke
return ctx.invoke(self.callback, **ctx.params)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/frappe-bench/env/lib/python3.14/site-packages/click/core.py”, line 824, in invoke
return callback(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/utils.py”, line 90, in build
bundle(
~~~~~~^
mode,
^^^^^
…<6 lines>…
esbuild_target=esbuild_target,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File “/home/frappe/frappe-bench/apps/frappe/frappe/build.py”, line 262, 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 crm_custom --run-build-command’ returned non-zero exit status 1.
Command ‘yarn run production --apps crm_custom --run-build-command’ returned non-zero exit status 1.
ERROR: bench build --app crm_custom
subprocess.CalledProcessError: Command ‘bench build --app crm_custom’ returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/home/frappe/.local/bin/bench”, line 7, in
sys.exit(cli())
~~~^^
File “/home/frappe/.local/lib/python3.14/site-packages/bench/cli.py”, line 132, in cli
bench_command()
~~~~~~~~~~~~~^^
File “/home/frappe/.local/lib/python3.14/site-packages/bench/commands/make.py”, line 181, in get_app
get_app(
~~~~~~~^
git_url,
^^^^^^^^
…<7 lines>…
compress_artifacts=compress_artifacts,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File “/home/frappe/.local/lib/python3.14/site-packages/bench/app.py”, line 787, in get_app
app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/.local/lib/python3.14/site-packages/bench/utils/render.py”, line 126, in wrapper_fn
return fn(*args, **kwargs)
File “/home/frappe/.local/lib/python3.14/site-packages/bench/app.py”, line 254, in install
install_app(
~~~~~~~~~~~^
app=app_name,
^^^^^^^^^^^^^
…<6 lines>…
using_cached=using_cached,
^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File “/home/frappe/.local/lib/python3.14/site-packages/bench/app.py”, line 968, in install_app
build_assets(bench_path=bench_path, app=app, using_cached=using_cached)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/.local/lib/python3.14/site-packages/bench/utils/bench.py”, line 405, in build_assets
exec_cmd(command, cwd=bench_path, env=env)
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/frappe/.local/lib/python3.14/site-packages/bench/utils/init.py”, line 193, in exec_cmd
raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: bench build --app crm_custom
process “/bin/sh -c bench get-app file:///home/frappe/context/apps/crm_custom #stage-apps-crm_custom” did not complete successfully: exit code: 1
[stage-0 32/34] RUN --mount=type=cache,sharing=locked,target=/home/frappe/.cache,uid=1000,gid=1000 --mount=type=bind,source=apps/crm_custom,target=/home/frappe/context/apps/crm_custom bench get-app file:///home/frappe/context/apps/crm_custom #stage-apps-crm_custom:
File “/home/frappe/.local/lib/python3.14/site-packages/bench/app.py”, line 968, in install_app
build_assets(bench_path=bench_path, app=app, using_cached=using_cached)
File "/home/frappe/.local/lib/python3.14/site-packages/bench/utils/bench.py", line 405, in build_assets
exec_cmd(command, cwd=bench_path, env=env)
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/frappe/.local/lib/python3.14/site-packages/bench/utils/__init__.py", line 193, in exec_cmd
raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: bench build --app crm_custom
60.72
------
failed to solve: process "/bin/sh -c bench get-app file:///home/frappe/context/apps/crm_custom `#stage-apps-crm_custom`" did not complete successfully: exit code: 1
i have created a custom app and i am overriding frappe crm vue components…….when i do build in local it working fine but on deployment it is giving err