Undeclared `@smithy/smithy-client` dependency in `@aws-sdk/credential-provider-http`
envgap__aws__aws-sdk-js-v3-5362
01 / FAILURE SIGNATURE
As reported upstream
Error: @aws-sdk/credential-provider-http tried to access @smithy/smithy-client, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
Not a benchmark task.
- In a clean container the reported failure did not reproduce, or the known fix did not make the project run.
02 / ENVIRONMENT RECIPE
- Base commit
70c2107b970d035bfedb211278c88fdbfc2e5334- Manifest
packages/credential-provider-http/package.json- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
aws/aws-sdk-js-v3 #5362 · read the original issue
### Checkboxes for prior research
- [X] I've gone through [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide) and [API reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest)
- [X] I've checked [AWS Forums](https://forums.aws.amazon.com) and [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js).
- [X] I've searched for [previous similar issues](https://github.com/aws/aws-sdk-js-v3/issues) and didn't find any solution.
### Describe the bug
Same as https://github.com/aws/aws-sdk-js-v3/issues/5056
The `@smithy/smithy-client` dependency is imported here:
https://github.com/aws/aws-sdk-js-v3/blob/f05d9c6150213ab279fb4afbff16b5c6e5e56bdd/packages/credential-provider-http/src/fromHttp/requestHelpers.ts#L4
But not declared in `@aws-sdk/credential-provider-http`'s dependencies.
### SDK version number
@aws-sdk/credential-providers@3.428.0, @aws-sdk/credential-provider-http@3.428.0
### Which JavaScript Runtime is this issue in?
Node.js
### Details of the browser/Node.js/ReactNative version
v18.15.0
### Reproduction Steps
- `yarn add @aws-sdk/credential-providers@3.428.0`
- `import {fromIni} from '@aws-sdk/credential-providers'`
### Observed Behavior
At import time, Node.js fails with:
```
Error: @aws-sdk/credential-provider-http tried to access @smithy/smithy-client, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
Required package: @smithy/smithy-client
Required by: @aws-sdk/credential-provider-http@npm:3.428.0 (via <redacted>/.yarn/cache/@aws-sdk-credential-provider-http-npm-3.428.0-193a49487e-e0824af9d4.zip/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/)
```
### Expected Behavior
The code should run without import time errors.
### Possible Solution
_No response_
### Additional Information/Context
_No response_04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]