Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues and PRs for 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