Getting error from the cutom app while get-app | ERROR There were some problems during build

The command I used

bench --site <SITE-NAME> --branch master https://gitlab.com/antony/my-custom-app.git

after that im getting this error

Getting my-custom-app
remote: Enumerating objects: 7482, done.
remote: Counting objects: 100% (7482/7482), done.
remote: Compressing objects: 100% (5133/5133), done.
remote: Total 7482 (delta 2058), reused 7482 (delta 2058), pack-reused 0
Receiving objects: 100% (7482/7482), 18.36 MiB | 5.34 MiB/s, done.
Resolving deltas: 100% (2058/2058), done.
Ignoring dependencies of https://gitlab.com/antony/my-custom-app.git. To install dependencies use --resolve-deps
Installing my-custom-app
$ /home/antony/project/tg6/frappe-branch/env/bin/python -m pip install --quiet --upgrade -e /home/antony/project/tg6/frappe-branch/apps/my-custom-app 
$ yarn install
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning Workspaces can only be enabled in private projects.
[4/4] Building fresh packages...
$ yarn run snyk-protect
yarn run v1.22.19
$ snyk protect
Successfully applied Snyk patches

A medium severity vulnerability was found in the Snyk CLI versions you are using.
We fixed the vulnerability in version 1.996.0. We recommend updating to the latest version.
More details here: https://snyk.co/ue1NS
Done in 4.21s.
Done in 37.60s.
$ bench build --app my-custom-app
✔ Application Assets Linked                                                                                                                                                                                


yarn run v1.22.19
$ node esbuild --production --apps my-custom-app --run-build-command
clean: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration
clean: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration
clean: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration
clean: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration
Browserslist: caniuse-lite is outdated. Please run:
  npx browserslist@latest --update-db
  Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
✘ [ERROR] [plugin vue] 

    ../my-custom-app/my-custom-app/public/js/hub/vue-plugins.js:9:23:
      9 │ import EmptyState from './components/EmptyState.vue';
        ╵                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

✘ [ERROR] [plugin vue] 

    ../my-custom-app/my-custom-app/public/js/hub/components/ItemCardsContainer.vue:27:21:
      27 │ import ItemCard from './ItemCard.vue';
         ╵                      ~~~~~~~~~~~~~~~~

 ERROR  There were some problems during build

Error: Build failed with 2 errors:
../my-custom-app/my-custom-app/public/js/hub/components/ItemCardsContainer.vue:27:21: ERROR: [plugin: vue] 
../my-custom-app/my-custom-app/public/js/hub/vue-plugins.js:9:23: ERROR: [plugin: vue] 
    at failureErrorWithLog (/home/antony/project/tg6/frappe-branch/apps/frappe/node_modules/esbuild/lib/main.js:1600:15)
    at /home/antony/project/tg6/frappe-branch/apps/frappe/node_modules/esbuild/lib/main.js:1246:28
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
Terminated
error Command failed with exit code 143.
info Visit https://yarnpkg.com/en/docs/cli/run 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/antony/project/tg6/frappe-branch/apps/frappe/frappe/utils/bench_helper.py", line 109, in <module>
    main()
  File "/home/antony/project/tg6/frappe-branch/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
    click.Group(commands=commands)(prog_name="bench")
  File "/home/antony/project/tg6/frappe-branch/env/lib/python3.10/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/antony/project/tg6/frappe-branch/env/lib/python3.10/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/antony/project/tg6/frappe-branch/env/lib/python3.10/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/antony/project/tg6/frappe-branch/env/lib/python3.10/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/antony/project/tg6/frappe-branch/env/lib/python3.10/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/antony/project/tg6/frappe-branch/env/lib/python3.10/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/antony/project/tg6/frappe-branch/apps/frappe/frappe/commands/utils.py", line 82, in build
    bundle(mode, apps=apps, hard_link=hard_link, verbose=verbose, skip_frappe=skip_frappe)
  File "/home/antony/project/tg6/frappe-branch/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/antony/project/tg6/frappe-branch/apps/frappe/frappe/commands/__init__.py", line 98, in popen
    raise subprocess.CalledProcessError(return_, command)
subprocess.CalledProcessError: Command 'yarn run production --apps my-custom-app --run-build-command' returned non-zero exit status 143.
ERROR: 
Traceback (most recent call last):
  File "/home/antony/.local/bin/bench", line 8, in <module>
    sys.exit(cli())
  File "/home/antony/.local/lib/python3.10/site-packages/bench/cli.py", line 127, in cli
    bench_command()
  File "/usr/lib/python3/dist-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/antony/.local/lib/python3.10/site-packages/bench/commands/make.py", line 159, in get_app
    get_app(
  File "/home/antony/.local/lib/python3.10/site-packages/bench/app.py", line 444, in get_app
    app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
  File "/home/antony/.local/lib/python3.10/site-packages/bench/utils/render.py", line 126, in wrapper_fn
    return fn(*args, **kwargs)
  File "/home/antony/.local/lib/python3.10/site-packages/bench/app.py", line 242, in install
    install_app(
  File "/home/antony/.local/lib/python3.10/site-packages/bench/app.py", line 586, in install_app
    build_assets(bench_path=bench_path, app=app)
  File "/home/antony/.local/lib/python3.10/site-packages/bench/utils/bench.py", line 345, in build_assets
    exec_cmd(command, cwd=bench_path, env={"BENCH_DEVELOPER": "1"})
  File "/home/antony/.local/lib/python3.10/site-packages/bench/utils/__init__.py", line 158, in exec_cmd
    raise CommandFailedError
bench.exceptions.CommandFailedError

[ERROR] [plugin vue]

please help me to setup

Note:

Code was fetched from gitlab correctly, only error happing at this position I feel, I attached that part of the code below.


yarn run v1.22.19
$ node esbuild --production --apps my-custom-app --run-build-command
clean: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration
clean: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration
clean: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration
clean: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration
Browserslist: caniuse-lite is outdated. Please run:
  npx browserslist@latest --update-db
  Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
✘ [ERROR] [plugin vue] 

    ../my-custom-app/my-custom-app/public/js/hub/vue-plugins.js:9:23:
      9 │ import EmptyState from './components/EmptyState.vue';
        ╵                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

✘ [ERROR] [plugin vue] 

    ../my-custom-app/my-custom-app/public/js/hub/components/ItemCardsContainer.vue:27:21:
      27 │ import ItemCard from './ItemCard.vue';
         ╵                      ~~~~~~~~~~~~~~~~

 ERROR  There were some problems during build

Please help me to solve and also tell me why the issue was happening