Skip to content

RollupError: "SmithyRpcV2CborProtocol" is not exported #7567

@moltar

Description

@moltar

Checkboxes for prior research

Describe the bug

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

Regression Issue

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

SDK version number

"@aws-sdk/client-quicksight": "3.946.0",

Which JavaScript Runtime is this issue in?

Node.js

Details of the browser/Node.js/ReactNative version

v22.16.0

Reproduction Steps

Install as a dev dep!

"@aws-sdk/client-quicksight": "3.946.0",

Use in a file:

import type { QuickSight } from '@aws-sdk/client-quicksight'

Use the following tsup config:

{
  "clean": true,
  "sourcemap": true,
  "watch": false,
  "silent": true,
  "entry": [
    "src/index.ts"
  ],
  "dts": {
    "resolve": true
  },
  "tsconfig": "tsconfig.build.json",
  "outDir": "lib",
  "format": [
    "cjs",
    "esm"
  ],
  "shims": true,
  "target": "node22.16.0"
}

build:

tsup

Observed Behavior

Explodes with error:

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

Expected Behavior

Not explode.

Possible Solution

Export SmithyRpcV2CborProtocol

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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions