I am Getting SourcePathInvalid for file path c://projectpath//projectname/extension-output-#2 at deployment time. Please refer attach image for more details.
[SalesForce] SFDX: Deploy Source to Org : Error – SourcePathInvalid
Related Topic
- [SalesForce] unable to create project in vscode
- [SalesForce] VS Code Salesforce plugin deploy does not provide an error message
- [SalesForce] How to fix sfdx error: “The \”path\” argument must be of type string. Received type undefined”
- [SalesForce] ‘SFDX: Retrieve Source in Mainfest from Org’ not retrieving the components
Best Answer
This is happening because for the force:source:deploy command that path of the folder or the file you want to deploy is not correct.
Try opening up the file and doing a deploy or copy the file path or directory path by running pwd on your command terminal and manually type the command force:source:deploy --sourcepath "path of the directory or file"
Where path is the file path