I'm working on "Unlocked Packages for Customers" trailhead module. While creating the package version I'm getting below error: ERROR: The --path (-d) value, [force-app], and --package (-p) value, [th-dreamhouse], were both found in sfdx-project.json but don’t match. If you supply both values, they must match the path and package values in one of the packageDirectories.
My sfdx command: sfdx force:package:version:create -p th-dreamhouse -d force-app -k test1234 --wait 10 -v DevHub
My sfdx-project.json file:
{
"packageDirectories": [
{
"path": "force-app",
"default": true,
"package": "dreamhouse",
"versionName": "ver 1.0",
"versionNumber": "1.0.0.NEXT"
},
{
"path": "force-app",
"package": "th-dreamhouse",
"versionName": "ver 1.0",
"versionNumber": "1.0.0.NEXT",
"default": false
}
],
"namespace": "",
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "44.0",
"packageAliases": {
"dreamhouse": "0Ho0I000000PAscSAG",
"[email protected]": "04t0I000001E1xdQAC",
"th-dreamhouse": "0Ho0I000000PAshSAG"
}
}