Skip to content

Cannot find module 'node:http` on AWS Lambda v14 #1367

Closed
@pawelgrzybek

Description

@pawelgrzybek

Upgrade from version 3.0 to 3.1 produces a Runtime.ImportModuleError: Error: Cannot find module 'node:http on AWS Lambda runtime.

Screenshots

Screenshot 2021-11-09 at 07 32 57

Your Environment

software version
node-fetch 3.1
node 14

Additional context

Looks like node: prefix for imports added as part of #1346 causes this issue. I am happy to submit MR with a revert of this one, but I need to understand the reason why this prefix has been added here on the first place. Can you suport me on this one please @dnalborczyk ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions