How can I avoid the ERROR running force:source:deploy: No source backed components present in the package?
I want to filter the price label to be updated and deployed. But when I am trying to deploy, I am getting the below error: no source backed components present in the package, which looks like the part provided below:
I have also tried updating CLI, value and onchange too, and removing spaces.However, the error persists. Any suggestions will be helpful.
Firstly, you can check the file type in .forceignore. Then, check that you are in the correct directory. You can be sure of this if you can see an sfdx-project.json file. If not, then check from your command shell, try dir /s sfdx-project.json, and use the correct directory:
Go to the directory and then run the code from there. You can verify whether your org is correctly connected in the lower-left corner. You can see the org's username or alias (here, sfdcfox). If not, click the plug icon and select the correct org. This error suggests that your force-app directory is empty. Keep your files in the right place.
Your sfdx-project.json file should be like the below: