Error while Installing Insights along with ERPNext 15

I was installing Insights develop branch to ERPNext version 14.4. The installation shows a success and on the search bar in ERPNext i can get Insights. But when I try to run it It says the page isn’t not found.
When I install it on v15 develop version of ERPnext Insight works but not in v14 and on the docs it says Insights is compatible with v15. Any tips on how to resolve this issue?

Hi
Install two bench, one with frappev14 and ERPNExt, and another with frappe v15 and insight

2 Likes

Hi @FHenry,
I currently have that setup. But using insights inside ERPNext removes the hustle of user access contol since we frequently change it. Just curios if Insight isn’t compatible with v14.
Also Hoping ERPNext v15 will be released in couple of days should i wait for that?

Running “bench migrate” fixed this problem for me.

@mrPauwHaan I did build and migrate but no luck for me. I think the issue maybe from the version of requirments like node. my current installation is node v16.
Can you share me the version of node?

I think node needs to be v18, but you should see errors about that during the installation then.

1 Like

Yes whien i build insights specifically using ‘bench build --app insights --force’ … i get the error below

Running build command for insights
$ cd frontend && yarn build
$ vite build --base=/assets/insights/frontend/ && yarn copy-html-entry
vite: invalid option – ‘-’
vite: invalid option – ‘b’
vite: invalid option – ‘a’
Splitting build
Cannot open file build
Aborted (core dumped)
error Command failed with exit code 134.
info Visit yarn run | Yarn for documentation about this command.
error Command failed with exit code 134.
info Visit yarn run | Yarn for documentation about this command.
Error: Command failed: yarn build
at checkExecSyncError (node:child_process:828:11)
at execSync (node:child_process:899:15)
at run_build_command_for_apps (/home/emc/frappe-bench/apps/frappe/esbuild/esbuild.js:433:5)
at /home/emc/frappe-bench/apps/frappe/esbuild/esbuild.js:88:35
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
status: 134,
signal: null,
output: [ null, null, null ],
pid: 1394023,
stdout: null,
stderr: null
}
Done in 4.75s

Also if i update the node to v18 will it work with erpnext v14?

@girumtibebu. yes, it works in V14.

Run the below command to resolve node v18 dependency.

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

updated node to v18.18.0 but still getting this error:

Running build command for insights
$ cd frontend && yarn build
$ vite build --base=/assets/insights/frontend/ && yarn copy-html-entry
vite: invalid option – ‘-’
vite: invalid option – ‘b’
vite: invalid option – ‘a’
Splitting build
Cannot open file build
Aborted (core dumped)
error Command failed with exit code 134.
info Visit yarn run | Yarn for documentation about this command.
error Command failed with exit code 134.
info Visit yarn run | Yarn for documentation about this command.
Error: Command failed: yarn build
at checkExecSyncError (node:child_process:890:11)
at execSync (node:child_process:962:15)
at run_build_command_for_apps (/home/emc/frappe-bench/apps/frappe/esbuild/esbuild.js:433:5)
at /home/emc/frappe-bench/apps/frappe/esbuild/esbuild.js:88:35
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
status: 134,
signal: null,
output: [ null, null, null ],
pid: 1473156,
stdout: null,
stderr: null
}
clean: postcss.plugin was deprecated. Migration guide:
PostCSS 8.0: Plugin migration guide—Martian Chronicles, Evil Martians’ team blog
Done in 3.91s.