I'm trying to update an unmanaged package that I've been developing and am running into the following error when running the following command:
sfdx force:package:version:create -p SomePackage -d force-app -k test1234 --wait 10 -v myclient-prod --codecoverage
No matching source was found within the package root directory: C:\Users\someuser\Dropbox\vscode_workspace\myclient\force-app
I tried reverting to a previous version of sfdx-cli, verifying that I have source in the correct paths, etc. I also reverted to a version that a user said worked for him here: https://developer.salesforce.com/forums/?id=9062I000000IWlmQAG, but that didn't help. I uninstalled & reinstalled, no luck. I have been able to create new versions in the past, so I don't think it's a config issue.
Just in case, here's my sfdx-config:
"packageDirectories": [
{
"path": "force-app",
"default": true,
"package": "SomePackage",
"versionName": "ver 0.1",
"versionNumber": "0.1.9.NEXT"
}
],
"namespace": "",
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "51.0",
"packageAliases": {
"SomePackage": "0Ho4x0000...",
"[email protected]": "04t...",
"[email protected]": "04t4x0000...",
"[email protected]": "04t4x0000...",
"[email protected]": "04t4x0000...",
"[email protected]": "04t4x00...",
"[email protected]": "04t4x...",
"[email protected]": "04t4x0..AO",
"[email protected]": "04t4x0000...",
"[email protected]": "04t4x00...",
"[email protected]": "04t4x000..."
}
}
Based on one of the comments below, I'm adding my .forceignore:
# List files or directories below to ignore them when running force:source:push, force:source:pull, and force:source:status
# More information: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_exclude_source.htm
#
package.xml
# LWC configuration files
**/jsconfig.json
**/.eslintrc.json
# LWC Jest
**/__tests__/**
ProductServiceCampaignItem.My_ProductServiceCampaignItems
ProductServiceCampaignItem.My_RecentProductServiceCampaignItems
ProductServiceCampaignItem.All_ProductServiceCampaignItems
ShiftTemplate.My_RecentShiftTemplates
ShiftTemplate.My_ShiftTemplates
ShiftTemplate.All_ShiftTemplates
**/prompts/**
I don't see anything there that should prevent this from running. Does anyone else?