[SalesForce] Deploy lightning web component is getting failed with error – “–json –loglevel fatal ended with exit code 1”

I am trying to deploy a lightning web component to the org using vs-code but getting the error.

Starting SFDX: Deploy Source to Org

10:09:14.43 sfdx force:source:deploy --sourcepath d:\Aakriti\Projects\LWC\LWCLearning\force-app\main\default\lwc --json --loglevel fatal
10:09:25.813 sfdx force:source:deploy --sourcepath d:\Aakriti\Projects\LWC\LWCLearning\force-app\main\default\lwc --json --loglevel fatal ended with exit code 1

Earlier I was able to deploy components successfully but after updating vs-code, I am getting this error. I am not sure what is the issue. Can anyone please let me know how can I resolve this.

I am using api-version '45'.

Thanks.

Best Answer

I was also facing the same error but did not find anything here. If your deployment is failing, so you need to go to your developer org, setup --> Deployment Status Settings

Here you will find the error details. Mine was failing coz I had already one lightning component by "HelloWorld", so I had to delete it.

You might face some other error here. So please check and then try.

Related Topic