Skip to content

Specify which module was requested in "SyntaxError: The requested module does not provide an export named '...'" #17785

Closed
@dandv

Description

@dandv

I'm using --experimental-modules and find that when a module down the dependency chain doesn't export a symbol, it's hard to tell which module that was:

SyntaxError: The requested module does not provide an export named '...'

It would really help if Node included the name of the module that didn't provide that export.

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues with confirmed bugs.esmIssues and PRs related to the ECMAScript Modules implementation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions