【Trailhead】最初のロック解除済みパッケージの構築

Trailheadの「顧客用ロック解除済みパッケージ」モジュールの[最初のロック解除済みパッケージの構築](https://trailhead.salesforce.com/ja/content/learn/modules/unlocked-packages-for-customers/build-your-first-unlocked-package?trailmix_creator_id=welcome4&trailmix_slug=architect-dev-lifecycle-and-deployment-ja)セクションで
手順通りに進めると新規パッケージバージョンの作成で下記のエラーが発生しました。
```java
sfdx force:package:version:create -p dreamhouse -k test1234 --wait 40 -v DevHub
```
D:\Salesforce\SampleProjects\dreamhouse-lwc>**sfdx force:package:version:create -p dreamhouse -d force-app -k test1234 --wait 10 -v DevHub -f config/project-scratch-def.json**
Request in progress. Sleeping 30 seconds. Will wait a total of 600 more seconds before timing out. Current Status='Initializing'
Request in progress. Sleeping 30 seconds. Will wait a total of 570 more seconds before timing out. Current Status='Verifying features and settings'
Request in progress. Sleeping 30 seconds. Will wait a total of 540 more seconds before timing out. Current Status='Verifying metadata'
<font color="red">
ERROR running force:package:version:create:  Multiple errors occurred:
(1) TestPropertyController: Field does not exist: Beds__c on Property__c
(2) Broker__c-Broker Layout: In field: field - no CustomField named Broker__c.Picture_IMG__c found
(3) Property__c-Property Layout: In field: field - no CustomField named Property__c.Address__c found
(4) PropertyController: Address__c,
                ^
ERROR at Row:4:Column:17
No such column 'Address__c' on entity 'Property__c'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.
(5) PropertyController: OR City__c LIKE :searchPattern
                   ^
ERROR at Row:6:Column:20
No such column 'City__c' on entity 'Property__c'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.
(6) SampleDataController: Variable does not exist: Date_Listed__c
(7) TestSampleDataController: Dependent class is invalid and needs recompilation:
 Class SampleDataController : Variable does not exist: Date_Listed__c
(8) TestPropertyController: Field does not exist: Price__c on Property__c
(9) TestPropertyController: Field does not exist: Baths__c on Property__c
(10) dreamhouse: In field: field - no CustomField named Broker__c.Broker_Id__c found
(11) Property__c: In field: defaultCompactLayoutAssignment - no CompactLayout named Property__c.Property_Compact_Layout found
(12) Broker_Record_Page: Component [force:relatedListSingleContainer] attribute [relatedListApiName]: Could not find related list [Properties__r] for entity [Broker__c]
(13) Property_Record_Page: 項目Days_On_Market__cは存在しません。スペルを確認してください。
(14) Create_property: create_property (レコードを作成) - オブジェクト「Property__c」の項目「Address__c」は存在しません。
(15) Broker__c: In field: defaultCompactLayoutAssignment - no CompactLayout named Broker__c.Broker_Compact found
(16) auraPropertyListMap: Invalid definition for PropertyController: ApexService.getType() return null with currentNamespace: c, namespace: null, name: PropertyController
(17) propertyCarousel: 「PropertyController」として参照される Apex アクションクラスが見つかりません
</font>
D:\Salesforce\SampleProjects\dreamhouse-lwc>

全く分からなくてネットで探して下記のURLを参照で解決できました。
https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54S00000JeL54SAF

```java
//sfdx force:package:beta:version:create -p dreamhouse -k test1234 --wait 40 -v DevHub
D:\Salesforce\SampleProjects\dreamhouse-lwc>sfdx force:package:beta:version:create -p dreamhouse -k test1234 --wait 40 -v DevHub
Version create.... Create version status: Success
Successfully created the package version [08c2w000000GohcAAC]. Subscriber Package Version Id: 04t2w0000093arKAAQ
Package Installation URL: https://login.salesforce.com/packaging/installPackage.apexp?p0=04t2w0000093arKAAQ
As an alternative, you can use the "sfdx force:package:install" command.

D:\Salesforce\SampleProjects\dreamhouse-lwc>
違いは「force:package:version:create」から「force:package:beta:version:create」に変わったことです、
```

Salesforce CLI Command Referenceを参照してみると、
コマンドの「force:package:version:create」のアリアスは「force:package:beta:version:create」でした。
https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_force_package.htm


一応同じエラーに遭遇したらこの方法で試してみてください。