-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Related error spans for multiple default exports #25032
Copy link
Copy link
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Related Error SpansSpecifying regions for error messages/diagnostics on multiple locations.Specifying regions for error messages/diagnostics on multiple locations.Help WantedYou can do thisYou can do this
Milestone
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Related Error SpansSpecifying regions for error messages/diagnostics on multiple locations.Specifying regions for error messages/diagnostics on multiple locations.Help WantedYou can do thisYou can do this
Now that we support multiple related spans for errors (#10489, #22789, #24548), we'd like to improve an existing error message.
Currently, we provide an error on each declaration when a module has multiple
export defaults.We can instead add a related span on all declarations but the first.
This can help users quickly glance at the original declaration.