function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Manvendra Chaturvedi 26Manvendra Chaturvedi 26 

SFDX: Push Source to Default Scratch Org error while pushing lightning web component from VS code

Hello ,I was trying to push lightning web component from VS Code.I am using command "SFDX: Push Source to Default Scratch Org" ,but everytime i am getting error ,sfdx force:source:push PROJECT PATH  ERROR N/A Not available for deploy for this API version. 
Any suggestion will be highly appretiated .
Thanks in Advance
Raj VakatiRaj Vakati
Its happening Randomly for me also .. can you retry couple times and then it will deploy 

Make sure you are using API version 45.0  .. see the below screenshot first time it says PROJECT PATH  ERROR N/A Not available for deploy for this API version and next time again if  i rerun it deployed

User-added image
Manvendra Chaturvedi 26Manvendra Chaturvedi 26
I tried it so many time . everytime i am getting the same error

I was following steps from this trialhead.

https://trailhead.salesforce.com/content/learn/projects/quick-start-lightning-web-components
Anastasia Posivets 8Anastasia Posivets 8
I had the same error. And i fixed it: go to \sfdx-project.json => change "sourceApiVersion" to 45.0. User-added image
KRayKRay
Thank you, @Anastasia Posivets 8!  Your fix worked for me!!!
Frederick H LaneFrederick H Lane
Not worked for me. We're on API version 46.0