Skip to content

RollupError: "RpcProtocol" is not exported #7188

@moltar

Description

@moltar

Checkboxes for prior research

Describe the bug

When building with tsup (esbuild), I am getting the following error on recent versions of the SDK:

RollupError: "RpcProtocol" is not exported by "../../node_modules/.pnpm/@AWS-SDK[email protected]/node_modules/@smithy/core/protocols.d.ts", imported by "../../node_modules/.pnpm/@AWS-SDK[email protected]/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts".

Usually this happens when the type is not exported properly.

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.16.0

Reproduction Steps

  1. Use SDK v3.840.0
  2. Try to build with tsup, and use type bundling option

Observed Behavior

RollupError: "RpcProtocol" is not exported by "../../node_modules/.pnpm/@AWS-SDK[email protected]/node_modules/@smithy/core/protocols.d.ts", imported by "../../node_modules/.pnpm/@AWS-SDK[email protected]/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts".

Expected Behavior

For build to pass.

Possible Solution

No response

Additional Information/Context

No response

Metadata

Metadata

Assignees

Labels

closed-for-stalenessguidanceGeneral information and guidance, answers to FAQs, or recommended best practices/resources.p2This is a standard priority issueresponse-requestedWaiting on additional info and feedback. Will move to \"closing-soon\" in 7 days.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions