Skip to content

fromSSO not exported from credentials-provider (again) #7069

@koehn

Description

@koehn

Checkboxes for prior research

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

#5692 (comment)

Additional Information/Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.needs-triageThis issue or PR still needs to be triaged.potential-regressionMarking this issue as a potential regression to be checked by team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions