frappe / insights

Open source analytics / business intelligence tool (BI)
https://frappe.io/insights
GNU Affero General Public License v3.0
408 stars 200 forks source link

Bench Get App issue #124

Closed sammish closed 1 year ago

sammish commented 1 year ago

Here the video

https://user-images.githubusercontent.com/12432802/236406481-79bac377-7731-4476-85aa-a47bde2bc428.mov

nextchamp-saqib commented 1 year ago

What is your node version?

sammish commented 1 year ago

image

nextchamp-saqib commented 1 year ago

Update your node version to v14.18+ or v16

sammish commented 1 year ago

I received another error after updating the node

https://user-images.githubusercontent.com/12432802/236609425-ae945a53-2be6-4c50-ae3d-23ce283aa53a.mov

sammish commented 1 year ago

Also , this error bench update --reset

Running build command for insights warning ../../package.json: No license field $ cd frontend && yarn build warning ../../../package.json: No license field $ vite build --base=/assets/insights/frontend/ && yarn copy-html-entry failed to load config from /home/frappe/frappe-bench/apps/insights/frontend/vite.config.js error during build: Error: Cannot find module 'node:fs' Require stack:

nextchamp-saqib commented 1 year ago

Did you upgrade to node v16?

According to this https://github.com/vitejs/vite/issues/9113#issuecomment-1184319357 it should work

nextchamp-saqib commented 1 year ago

It was a node compatibility issue. I have raised a fix (600f579e4ee4bfd8aeeff975c93e55a16008eaba)

sammish commented 1 year ago

Thanks