-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
force:package:beta:version:create error "Cannot read properties of undefined (reading 'package')" #1750
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
This issue has been linked to a new work item: W-11903179 |
@6ithu8u53r Thanks for the report. We really appreciate you giving the beta commands a spin. Is there a particular path you took to get to this issue? Is there a dx packaging project that can be used to reproduce this issue? |
This was a DX package that's been in use for about a year now. The package version create failed using the 7.171.0 cli release so we were advised to try the beta version. The beta version failed with the error in this issue, which was different than our original error. Unfortunately I do not have a project that I can share publicly to reproduce the issue, but it is attached to the case that I opened with Salesforce. |
Ok, thanks for the info. I found the root cause and I am working on a fix now. The reproduction scenario I used was running version create using the Does this track with your attempt? |
I don't think so the path value in the json matches what is on the command line. Here's what my command looks like... and here's the sfdx-prject.json section with the path...
|
Seeing this same error as well. create command:
sfdx-project.json packageDirectories section:
version info:
|
Add |
Thanks for the suggestion, but versionName already exists in sfdx-project.json |
This has been added to the list of Known Issues that is in review at the time of this post. |
Summary
Running
sfdx force:package:beta:version:create
command fails: Cannot read properties of undefined (reading 'package')Running
sfdx force:package:version:create
command works with 7.170.0 or earlier releases. I'm attempting to use the beta command because issues starting with 7.171.0 appear to be related to issue 1742.Steps To Reproduce:
I've opened a case regarding this advised to add an issue here and link the case to it. The case contains the failing DX Project code.
Expected result
Expected the package version to be created successfully.
Actual result
Command fails...
System Information
Additional information
The text was updated successfully, but these errors were encountered: