SFDX: Deploy Source to Org takes 10+ minutes

Lately, using the Deploy feature from SFDX, components are taking a painfully long time to deploy to the org. This is happening even when deploying a single component.

Has anyone else run into this issue? Any steps to investigate, or remedy this issue? It’s absolutely ridiculous that it takes this long to deploy just a few lines of code.

11:42:36.368 sfdx force:source:deploy --sourcepath /lwc/component/component.html --json --loglevel fatal

11:55:10.569 sfdx force:source:deploy --sourcepath /lwc/component/component.html --json --loglevel fatal ended with exit code 1


This problem is probably already solved, I write this answer for the next ones who like me will come across it.

In my case it was a mistake on my part. I renamed my class and in particular the following file :

myclass.cls-meta.xml to myclass.xml

Of course VS doesn’t like that very much … However, it does not return any error and continues to load in a loop.

if you change to the folowing it work (well, in my case anyway) :

myclass.xml to myclass.cls-meta.xml

Source : Link , Question Author : Alex , Answer Author : Moonpie

Leave a Comment