-
Notifications
You must be signed in to change notification settings - Fork 634
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
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
- Use SDK v3.840.0
- 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