To Fix this you need to follow the below steps :
Step 1: Add the Required Feature to the Scratch Org Definition File
Add the required features to the features array. For example, to enable Multi-Currency: add "MultiCurrency" to the features list. For Process Builder: add "ProcessBuilder". Save the file. Refer to the Scratch Org Definition Configuration Values documentation (Scratch Org Def File) for the full list of supported features.
Step 2: Specify the Definition File in the Package Version Create Command
When running the package version create command, explicitly reference the definition file using the -f flag:
sfdx force:package:version:create -p CurrencyTest -x -w 30 -f config/project-scratch-def.json
Including the -f flag ensures that Salesforce validates the package metadata against a scratch org that has all required features enabled, preventing the dependency error.
000396083

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.