cjholowatyj's avatar

How to best debug Vite when it hangs mid-build?

I'm having trouble tracing the cause of Vite hanging mid-build in my project, and simply adding the -d flag to my vite build command doesn't give me any actionable information on how to fix the problem. The only thing I learn is that Vite hangs at random points somewhere in the 4000 to 4200 range of the transforming (#) log message...

Is there any better or more insightful way to debug Vite builds to find out where/why they are hanging? I've tried disabling plugins one by one and all together and that doesn't shed any additional light on where the problem resides... Thanks in advance for your feedback!!!

My stack: Laravel 12, ViteJS 6, VueJS 3, InertiaJS, Pinia...

0 likes
1 reply
cjholowatyj's avatar

I also installed madge to check for circular dependencies and none were found :(

Please or to participate in this conversation.