Skip to content

Node 20.x: import.meta.resolve is not a promise anymore #200

@koshic

Description

@koshic

https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V20.md#2023-04-18-version-2000-current-rafaelgss
nodejs/node#44710

As a result,

? await import.meta.resolve(id, asFileURL(parent)).catch(() => null)
fails with 'TypeError: (intermediate value).resolve(...).catch is not a function'.

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