function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Baron Chen 11Baron Chen 11 

undefined does not contain a packaging directory for force-app

User-added image
When I Create a package version, I get an error:

sfdx force:package:version:create -n 1.1.0.1 -d force-app -x --wait 10
User-added image

 
Best Answer chosen by Baron Chen 11
SandhyaSandhya (Salesforce Developers) 
Hi,

Did you change the version in sfdx-project.json.

I would suggest you refer below trailhead module which have the steps to create package version.

https://trailhead.salesforce.com/en/modules/unlocked-packages-for-customers/units/build-your-first-unlocked-package
 
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
                                             
Best Regards
Sandhya
 

All Answers

SandhyaSandhya (Salesforce Developers) 
Hi,

Did you change the version in sfdx-project.json.

I would suggest you refer below trailhead module which have the steps to create package version.

https://trailhead.salesforce.com/en/modules/unlocked-packages-for-customers/units/build-your-first-unlocked-package
 
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
                                             
Best Regards
Sandhya
 
This was selected as the best answer
Baron Chen 11Baron Chen 11
Thanks, Sandhya.
Attribute 'package' is required!
False:
User-added image
True:
User-added image