Skip to content

TS2305 / TS2724 – @aws-sdk/types lacks **AttributedTokenIdentity** & **AwsSdkTokenFeatures** when compiling with @aws-sdk/client-sqs >= 3.859.0 #7244

@nomi3

Description

@nomi3

Checkboxes for prior research

Describe the bug

Running tsc fails with TS2305 / TS2724 because
@aws-sdk/core expects two new type exports that are missing from the
hoisted copy of @aws-sdk/types.

node_modules/@aws-sdk/client-sqs/node_modules/@aws-sdk/core/dist-types/submodules/client/setTokenFeature.d.ts:1:15 - error TS2305: Module '"@aws-sdk/types"' has no exported member 'AttributedTokenIdentity'.

1 import type { AttributedTokenIdentity, AwsSdkTokenFeatures } from "@aws-sdk/types";
                      ~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@aws-sdk/client-sqs/node_modules/@aws-sdk/core/dist-types/submodules/client/setTokenFeature.d.ts:1:40 - error TS2724: '"@aws-sdk/types"' has no exported member named 'AwsSdkTokenFeatures'. Did you mean 'AwsSdkFeatures'?

Regression Issue

  • Select this option if this issue appears to be a regression.

SDK version number

@aws-sdk/[email protected]

Which JavaScript Runtime is this issue in?

Node.js

Details of the browser/Node.js/ReactNative version

v22.11.0

Reproduction Steps

  1. Run yarn add @aws-sdk/[email protected]
  2. Run tsc.
  3. Part-way through compilation, the TS2305 / TS2724 errors appear.

Observed Behavior

Compilation fails

Expected Behavior

All packages compile cleanly without requiring manual pinning,
analogous to releases prior to this token-feature change.

Possible Solution

No response

Additional Information/Context

No response

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.guidanceGeneral information and guidance, answers to FAQs, or recommended best practices/resources.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions