How to install India Compliance running on docker instance?

Hello there, I am trying to install India Compliance on my hosted ERPNext, which is running on docker.
I am going inside docker container (docker exec -it backend /bin/bash) and then trying to run installation commands as proposed by the India Compliance team, but I am getting error on it.

yarn run v1.22.19
$ node esbuild --production --apps india_compliance --run-build-command
✘ [ERROR] No matching export in "node_modules/vue-router/dist/vue-router.mjs" for import "default"

    ../india_compliance/india_compliance/public/js/india_compliance_account/router.js:1:7:
      1 │ import VueRouter from "vue-router";
        ╵        ~~~~~~~~~

✘ [ERROR] No matching export in "node_modules/vue/dist/vue.runtime.esm-bundler.js" for import "default"

    ../india_compliance/india_compliance/public/js/india_compliance_account/india_compliance_account.bundle.js:1:7:
      1 │ import Vue from "vue";
        ╵        ~~~

✘ [ERROR] No matching export in "node_modules/vue-router/dist/vue-router.mjs" for import "default"

    ../india_compliance/india_compliance/public/js/india_compliance_account/india_compliance_account.bundle.js:2:7:
      2 │ import VueRouter from "vue-router";
        ╵        ~~~~~~~~~

✘ [ERROR] [plugin frappe-vue-style] Cannot read properties of undefined (reading 'outputs')

    /home/frappe/frappe-bench/apps/frappe/esbuild/frappe-vue-style.js:10:41:
      10 │       let files = get_files(result.metafile.outputs);
         ╵                                             ^

    at /home/frappe/frappe-bench/apps/frappe/esbuild/frappe-vue-style.js:10:42
    at /home/frappe/frappe-bench/apps/frappe/node_modules/esbuild/lib/main.js:1052:21
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

  This error came from the "onEnd" callback registered here:

    /home/frappe/frappe-bench/apps/frappe/esbuild/frappe-vue-style.js:9:8:
      9 │     build.onEnd((result) => {
        ╵           ~~~~~

    at setup (/home/frappe/frappe-bench/apps/frappe/esbuild/frappe-vue-style.js:9:9)
    at handlePlugins (/home/frappe/frappe-bench/apps/frappe/node_modules/esbuild/lib/main.js:855:23)

 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:7: ERROR: No matching export in "node_modules/vue/dist/vue.runtime.esm-bundler.js" for import "default"
../india_compliance/india_compliance/public/js/india_compliance_account/india_compliance_account.bundle.js:2:7: ERROR: No matching export in "node_modules/vue-router/dist/vue-router.mjs" for import "default"
../india_compliance/india_compliance/public/js/india_compliance_account/router.js:1:7: ERROR: No matching export in "node_modules/vue-router/dist/vue-router.mjs" for import "default"
/home/frappe/frappe-bench/apps/frappe/esbuild/frappe-vue-style.js:10:41: ERROR: [plugin: frappe-vue-style] Cannot read properties of undefined (reading 'outputs')
    at failureErrorWithLog (/home/frappe/frappe-bench/apps/frappe/node_modules/esbuild/lib/main.js:1624:15)
    at /home/frappe/frappe-bench/apps/frappe/node_modules/esbuild/lib/main.js:1266:28
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5
   
Terminated

you cannot install. read faq. you need to build images.

use these images: Container Registry · castlecraft / CEPL ERPNext Images · GitLab

didn’t upgrade it for v15 as there is no stable release for it for India compliance. once v15 tag is released I’ll build and use it.

It only has ERPNext and India compliance.

Hello there,You mean to build custom docker images?
Is there any guide / documentation on building custom docker images.

Also what is these images that you have shared? These are images of what? ERPNext?

Check repo for docs. frappe_docker/docs/custom-apps.md at main · frappe/frappe_docker · GitHub

ERPNext v14 and India compliance v14.

Okay will look into it for custom images.

Hi
Can i Install India Compliance for V15
Thanks and Regards
Hemanth

Hi
Tried Installing India_compliance on V15
Threw the below error
frappe.exceptions.linkvalidationerror : Could not find doctype : Bill of Entry
Regards
Hemanth

Which branch are you on?
You can unofficially use the version-15-hotfix branch.

We plan to officially release the version-15 branch soon.

frappe.exceptions.linkvalidationerror : Could not find doctype : Bill of Entry

Looks like a basic installation issue and this should be unrelated to any version.
Try bench migrate

use this image registry.gitlab.com/castlecraft/cepl-erpnext-images/apps:15.2.0-1

or check how it’s built here: .gitlab-ci.yml · main · castlecraft / CEPL ERPNext Images · GitLab

1 Like

are you able to install on ERPNext V15 i am getting the same error

frappe.exceptions.linkvalidationerror : Could not find doctype : Bill of Entry