Skip to content

@azure/storage-blob dependency causes TypeScript compilation error #38846

@ostracod

Description

@ostracod
  • Package Name: @azure/storage-blob
  • Package Version: 12.32.0
  • Operating system: macOS 26.4.1
  • nodejs
    • version: 20.19.3
  • browser
    • name/version:
  • typescript
    • version: 5.9.3
  • Is the bug related to documentation in

Describe the bug
When compiling a TypeScript application with the @azure/storage-blob dependency, the TypeScript compiler throws this error:

node_modules/@azure/storage-common/dist/commonjs/bufferHelpers.d.ts:1:15 - error TS2305: Module '"@azure/core-rest-pipeline"' has no exported member 'NodeBuffer'.

1 import type { NodeBuffer } from "@azure/core-rest-pipeline";

To Reproduce
Create a project directory containing these files:

  • package.json
    {
      "scripts": {
        "build": "tsc"
      },
      "dependencies": {
        "@azure/storage-blob": "12.32.0",
        "@types/node": "22.19.3",
        "typescript": "5.9.3"
      }
    }
    
  • tsconfig.json
    {
      "compilerOptions": {
        "module": "commonjs",
        "target": "es6",
        "outDir": "dist",
        "baseUrl": ".",
        "paths": {
          "*": ["src/*"]
        }
      },
      "include": [
        "src/**/*.ts"
      ],
      "exclude": [
        "node_modules",
      ]
    }
    
  • src/index.ts
    import { BlobServiceClient } from '@azure/storage-blob';
    console.log(BlobServiceClient);
    

From inside the project directory, run npm install and npm run build.

Expected behavior
The TypeScript compiler should not throw an error.

Additional context
This bug does not occur when using @azure/storage-blob version 12.29.1. We would appreciate if you could fix this TypeScript problem, since our team would like to stay up-to-date with the latest version of @azure/storage-blob.

Metadata

Metadata

Assignees

Labels

Azure.CoreClientThis issue points to a problem in the data-plane of the library.StorageStorage Service (Queues, Blobs, Files)customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions