• Gary Chen 9
  • NEWBIE
  • 10 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
I am trying to deploy package to Sandbox and getting the following error 
 
"message": "No matching source was found within the package root directory:

I run command in vscode 
 
sfdx force:package:version:create --targetdevhubusername DevHub --package 0Ho1W000000XXXXXXXX --versionnumber 1.0.0.NEXT --installationkeybypass --wait 10 --json

{
  "status": 1,
  "name": "Error",
  "message": "No matching source was found within the package root directory: /Users/01_Salesforce/CICD/app/force-app",
  "exitCode": 1,
  "commandName": "PackageVersionCreateCommand",
  "stack": "Error: No matching source was found within the package root directory: /Users/01_Salesforce/CICD/app/force-app\n
.....
I used the same template before another unlocked package. It is working with no issue. 
I cannot figure out why this happened in the first place and how to resolve it.

P.S. it is a new package I try to deploy. I created based on my previous template. 
It ways on the state of package creation.