-
Notifications
You must be signed in to change notification settings - Fork 634
Closed
Labels
bugThis issue is a bug.This issue is a bug.needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.potential-regressionMarking this issue as a potential regression to be checked by team memberMarking this issue as a potential regression to be checked by team member
Description
Checkboxes for prior research
- I've gone through Developer Guide and API reference
- I've checked AWS Forums and StackOverflow.
- I've searched for previous similar issues and didn't find any solution.
Describe the bug
This like a regression of #5693/#5692
Regression Issue
- Select this option if this issue appears to be a regression.
SDK version number
@aws-sdk/credential-providers 3.799.0, 3.806.0
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
v23.11.0, I also tried v22.15.0
Reproduction Steps
Export fromSSO doesn't exist in target module
1 | import { DynamoDBClient, DynamoDBClientConfig } from "@aws-sdk/client-dynamodb";
2 | import { DynamoDBDocumentClient } from "@aws-sdk/lib-dynamodb";
> 3 | import { fromSSO } from "@aws-sdk/credential-providers";
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The export fromSSO was not found in module [project]/node_modules/@aws-sdk/credential-providers/dist-es/index.browser.js [app-client] (ecmascript) <exports>.
Did you mean to import fromHttp?
All exports of the module are statically known (It doesn't have dynamic exports). So it's known statically that the requested export doesn't exist.
$ cat node_modules/@aws-sdk/credential-providers/dist-es/index.browser.js
export * from "./fromCognitoIdentity";
export * from "./fromCognitoIdentityPool";
export { fromHttp } from "@aws-sdk/credential-provider-http";
export * from "./fromTemporaryCredentials.browser";
export * from "./fromWebToken";
Observed Behavior
Looks like #5693 and #5692 were the same thing.
Expected Behavior
Module should load correctly.
Possible Solution
Additional Information/Context
No response
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.potential-regressionMarking this issue as a potential regression to be checked by team memberMarking this issue as a potential regression to be checked by team member