Skip to content

Unable to use dynamic import() in cjs-files #30

@KilianKilmister

Description

@KilianKilmister

Trying to use a dynamic import() statement will fail with:

TypeError [ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING]: A dynamic import callback was not specified.

The error originates from an insufficient options object passed to the new Script()-constructor node VM docs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions