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