Closed sammish closed 1 year ago
What is your node
version?
Update your node version to v14.18+ or v16
I received another error after updating the node
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:
Did you upgrade to node v16?
According to this https://github.com/vitejs/vite/issues/9113#issuecomment-1184319357 it should work
It was a node compatibility issue. I have raised a fix (600f579e4ee4bfd8aeeff975c93e55a16008eaba)
Thanks
Here the video
https://user-images.githubusercontent.com/12432802/236406481-79bac377-7731-4476-85aa-a47bde2bc428.mov