'Vitesse starter template stuck on build

I am using Vitesse which is a Vuejs starter template for my new dashboard which is metronic 8 and i am facing a problem when runnuing pnpm build is it working when run dev but when trying to build the app it showing this

enter image description here

It keeps stucking on this rendering chunks (13) I've tried this solution But it didn't work ..

I've read that element-plus is somehow causing the issue when removing it ... and build again i am facing this error enter image description here

Any idea please?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source