Skip to content

Cannot find module 'node:stream' or its corresponding type declarations. #7181

@michalgrochowski

Description

@michalgrochowski

Checkboxes for prior research

Describe the bug

Hi,

After updating AWS-SDK from v2 to v3 I have a problem with Angular app build - I get an TS error from a @smithy/util-stream saying that module "node:stream" cannot be found. I've tried node v20, v21 and currently v22.17.0, but it's not the issue.

Regression Issue

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

SDK version number

@aws-sdk/[email protected]., @aws-sdk/[email protected], @aws-sdk/[email protected], @aws-sdk/[email protected], @aws-sdk/[email protected]

Which JavaScript Runtime is this issue in?

Browser

Details of the browser/Node.js/ReactNative version

Angular v18, Node.js v22.17.0, Chrome latest

Reproduction Steps

Use Upload to observe 'httpUploadProgress' and PutObjectCommand using S3Client send() method

Observed Behavior

Application cannot be run/build due to missing import/module

Expected Behavior

Application should run/build as expected

Possible Solution

No response

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