Problem installing Indian compliances in erpnext 14

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$ 

Specify the branch for v14 like so:

bench get-app --branch version-14 https://github.com/resilient-tech/india-compliance.git

The branch next isn’t compatible with ERPNext v14.

ok, let me try again and get back to here

Ok, now it seems ok and working properly

@snv and @Smit_Vora
I am getting an error while migrating the site.

rappe@vmi1325004:~/frappe-bench/sites$ sudo bench --site site1.local install-app india_compliance
App erpnext already installed

Installing india_compliance...
Updating DocTypes for india_compliance: [========================================] 100%
Setting up Income Tax...
Setting up GST...
Installation for India Compliance failed due to an error. Please try re-installing the app or report the issue on https://github.com/resilient-tech/india-compliance/issues/new if not resolved.
An error occurred while installing india_compliance: Default value for naming_series must be in the list of options.
Traceback (most recent call last):
  File "apps/frappe/frappe/commands/site.py", line 416, in install_app
    _install_app(app, verbose=context.verbose, force=force)
  File "apps/frappe/frappe/installer.py", line 304, in install_app
    frappe.get_attr(after_install)()
  File "apps/india_compliance/india_compliance/install.py", line 63, in after_install
    raise e
  File "apps/india_compliance/india_compliance/install.py", line 48, in after_install
    setup_gst()
  File "apps/india_compliance/india_compliance/gst_india/setup/__init__.py", line 29, in after_install
    create_property_setters()
  File "apps/india_compliance/india_compliance/gst_india/setup/__init__.py", line 58, in create_property_setters
    frappe.make_property_setter(property_setter)
  File "apps/frappe/frappe/__init__.py", line 1700, in make_property_setter
    ps.insert()
  File "apps/frappe/frappe/model/document.py", line 285, in insert
    self.run_post_save_methods()
  File "apps/frappe/frappe/model/document.py", line 1082, in run_post_save_methods
    self.run_method("on_update")
  File "apps/frappe/frappe/model/document.py", line 914, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 1264, in composer
    return composed(self, method, *args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 1246, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "apps/frappe/frappe/model/document.py", line 911, in fn
    return method_object(*args, **kwargs)
  File "apps/frappe/frappe/custom/doctype/property_setter/property_setter.py", line 38, in on_update
    validate_fields_for_doctype(self.doc_type)
  File "apps/frappe/frappe/core/doctype/doctype/doctype.py", line 1037, in validate_fields_for_doctype
    validate_fields(meta)
  File "apps/frappe/frappe/core/doctype/doctype/doctype.py", line 1472, in validate_fields
    check_illegal_default(d)
  File "apps/frappe/frappe/core/doctype/doctype/doctype.py", line 1186, in check_illegal_default
    frappe.throw(
  File "apps/frappe/frappe/__init__.py", line 526, in throw
    msgprint(
  File "apps/frappe/frappe/__init__.py", line 494, in msgprint
    _raise_exception()
  File "apps/frappe/frappe/__init__.py", line 443, in _raise_exception
    raise raise_exception(msg)
frappe.exceptions.ValidationError: Default value for naming_series must be in the list of options.

Also another Issue found in.

A null value in GST HSN Code doctype, and Data type value changed from Autocomplete to Data in Stale field of Address Doctype.

Hello,

What are the values of following properties of the naming_series field of Delivery Note, Sales Invoice and Purchase Invoice:

  • Options
  • Default

I think when you review this information, you will notice that one of the default values is not available in the corresponding options. You need to then fix this default value.

I’m sorry. What exactly is the issue here? Please be as specific as possible.

Thanks for the reply. Previously I restored old data and updated then faced Issues now have started from scratch.

It’s working fine.