I am getting this error when I create version of a new second generation managed package. The project has simple Apex class without code and dependency on single 1st generation managed package.
Are the any workaround for the error e.g. specifying some settings to project-scratch-def.json
?
Apex Class:
public with sharing class MyApexClass {
}
sfdx-project.json (Ids, package name, alias, dependent package name, and version are changed):
{
"packageDirectories": [
{
"path": "force-app",
"default": true,
"package": "my package name",
"versionName": "ver 0.1",
"versionNumber": "0.1.0.NEXT",
"dependencies": [
{
"package": "[email protected]"
}
]
}
],
"name": "my project name",
"namespace": "mynamespace",
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "52.0",
"packageAliases": {
"my package name": "0Hoxxx",
"[email protected]": "04txxxxx"
}
}