Skip to content

bug(node-http-handler): Breaking change to dynamic import in 4.5.0 when using Jest #1929

@sam-super

Description

@sam-super

Since version 4.5.0 of node-http-handler we are getting this error during test runs:

AWS SDK error wrapper for TypeError
[ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG]: A dynamic import callback was invoked without --experimental-vm-modules

I believe this change is the cause:
#1921

The flag --experimental-vm-modules should only be required in Jest because it uses the vm module to isolate tests. If Jest isn't supported by smithy-typescript this isn't really a bug, but ideally something in the documentation (and changelog?) around this would help other developers in future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    response-requestedWaiting on additional info and feedback. Will move to 'closing-soon' in 5 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions