Skip to content
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

Undeclared @smithy/smithy-client dependency in @aws-sdk/credential-provider-http #5362

Closed
3 tasks done
Drarig29 opened this issue Oct 16, 2023 · 7 comments · Fixed by #5395
Closed
3 tasks done

Undeclared @smithy/smithy-client dependency in @aws-sdk/credential-provider-http #5362

Drarig29 opened this issue Oct 16, 2023 · 7 comments · Fixed by #5395
Assignees
Labels
bug This issue is a bug.

Comments

@Drarig29
Copy link

Checkboxes for prior research

Describe the bug

Same as #5056

The @smithy/smithy-client dependency is imported here:

import { parseRfc3339DateTime } from "@smithy/smithy-client";

But not declared in @aws-sdk/credential-provider-http's dependencies.

SDK version number

@aws-sdk/[email protected], @aws-sdk/[email protected]

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/[email protected]
  • 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

@Drarig29 Drarig29 added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Oct 16, 2023
@yenfryherrerafeliz yenfryherrerafeliz self-assigned this Oct 18, 2023
@yenfryherrerafeliz
Copy link
Contributor

Hi @Drarig29, this has been fixed. Please just update to the latest version and you should have not issues. You can confirm the fix here.

Please feel free of opening a new issue if is there anything that we can help you with.

Thanks!

@yenfryherrerafeliz yenfryherrerafeliz removed the needs-triage This issue or PR still needs to be triaged. label Oct 20, 2023
@jfirebaugh
Copy link

@yenfryherrerafeliz It isn't fixed in the latest version. The line you linked to is a dependency on @smithy/types, not @smithy/smithy-client. Could you please reopen the issue?

@Drarig29
Copy link
Author

@yenfryherrerafeliz I agree with John that the issue is not fixed, and that the line you linked isn't related.

Can you please reopen?

@Drarig29
Copy link
Author

Pinging @kuhe since you recently fixed a related issue 🙂

@kuhe
Copy link
Contributor

kuhe commented Oct 20, 2023

Added it in #5395 to be included in the next release.

@Drarig29
Copy link
Author

Thanks a lot!

Copy link

github-actions bot commented Nov 4, 2023

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants