I have been trying to install Indian compliances on fresh installation of erpnext 14 on ubuntu 22.04 on GCP. It seems it is getting installed but with some errors. see following response
erpnext@erpnext:~/frappe-bench$ bench get-app --branch next https://github.com/resilient-tech/india-compliance.git
Getting india-compliance
$ git clone https://github.com/resilient-tech/india-compliance.git --branch next --depth 1 --origin upstream
Cloning into 'india-compliance'...
remote: Enumerating objects: 292, done.
remote: Counting objects: 100% (292/292), done.
remote: Compressing objects: 100% (258/258), done.
remote: Total 292 (delta 26), reused 189 (delta 23), pack-reused 0
Receiving objects: 100% (292/292), 615.95 KiB | 9.78 MiB/s, done.
Resolving deltas: 100% (26/26), done.
Ignoring dependencies of https://github.com/resilient-tech/india-compliance.git. To install dependencies use --resolve-deps
Installing india_compliance
$ /home/erpnext/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/erpnext/frappe-bench/apps/india_compliance
$ bench build --app india_compliance
✔ Application Assets Linked
yarn run v1.22.19
$ node esbuild --production --apps india_compliance --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
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
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
✘ [ERROR] No matching export in "node_modules/vue-router/dist/vue-router.esm.js" for import "createRouter"
../india_compliance/india_compliance/public/js/india_compliance_account/router.js:1:9:
1 │ import { createRouter, createWebHistory } from 'vue-router';
╵ ~~~~~~~~~~~~
✘ [ERROR] No matching export in "node_modules/vue-router/dist/vue-router.esm.js" for import "createWebHistory"
../india_compliance/india_compliance/public/js/india_compliance_account/router.js:1:23:
1 │ import { createRouter, createWebHistory } from 'vue-router';
╵ ~~~~~~~~~~~~~~~~
✘ [ERROR] No matching export in "node_modules/vuex/dist/vuex.esm.js" for import "createStore"
../india_compliance/india_compliance/public/js/india_compliance_account/store/index.js:1:9:
1 │ import { createStore } from 'vuex'
╵ ~~~~~~~~~~~
✘ [ERROR] No matching export in "node_modules/vue/dist/vue.runtime.esm.js" for import "createApp"
../india_compliance/india_compliance/public/js/india_compliance_account/india_compliance_account.bundle.js:1:9:
1 │ import { createApp } from "vue";
╵ ~~~~~~~~~
ERROR There were some problems during build
Error: Build failed with 4 errors:
../india_compliance/india_compliance/public/js/india_compliance_account/india_compliance_account.bundle.js:1:9: ERROR: No matching export in "node_modules/vue/dist/vue.runtime.esm.js" for import "createApp"
../india_compliance/india_compliance/public/js/india_compliance_account/router.js:1:9: ERROR: No matching export in "node_modules/vue-router/dist/vue-router.esm.js" for import "createRouter"
../india_compliance/india_compliance/public/js/india_compliance_account/router.js:1:23: ERROR: No matching export in "node_modules/vue-router/dist/vue-router.esm.js" for import "createWebHistory"
../india_compliance/india_compliance/public/js/india_compliance_account/store/index.js:1:9: ERROR: No matching export in "node_modules/vuex/dist/vuex.esm.js" for import "createStore"
at failureErrorWithLog (/home/erpnext/frappe-bench/apps/frappe/node_modules/esbuild/lib/main.js:1600:15)
at /home/erpnext/frappe-bench/apps/frappe/node_modules/esbuild/lib/main.js:1246:28
at processTicksAndRejections (node:internal/process/task_queues:96: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/erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 109, in <module>
main()
File "/home/erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
click.Group(commands=commands)(prog_name="bench")
File "/home/erpnext/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/home/erpnext/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/erpnext/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/erpnext/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/erpnext/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/erpnext/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/erpnext/frappe-bench/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/erpnext/frappe-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/erpnext/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 98, in popen
raise subprocess.CalledProcessError(return_, command)
subprocess.CalledProcessError: Command 'yarn run production --apps india_compliance --run-build-command' returned non-zero exit status 143.
ERROR:
Traceback (most recent call last):
File "/usr/local/bin/bench", line 8, in <module>
sys.exit(cli())
File "/usr/local/lib/python3.10/dist-packages/bench/cli.py", line 127, in cli
bench_command()
File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/bench/commands/make.py", line 159, in get_app
get_app(
File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 444, in get_app
app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
File "/usr/local/lib/python3.10/dist-packages/bench/utils/render.py", line 126, in wrapper_fn
return fn(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 242, in install
install_app(
File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 586, in install_app
build_assets(bench_path=bench_path, app=app)
File "/usr/local/lib/python3.10/dist-packages/bench/utils/bench.py", line 345, in build_assets
exec_cmd(command, cwd=bench_path, env={"BENCH_DEVELOPER": "1"})
File "/usr/local/lib/python3.10/dist-packages/bench/utils/__init__.py", line 158, in exec_cmd
raise CommandFailedError
bench.exceptions.CommandFailedError
erpnext@erpnext:~/frappe-bench$