Provide better errors on module: node12 and extensionless imports #46152
Labels
Domain: Error Messages
The issue relates to error messaging
Effort: Moderate
Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".
Fix Available
A PR has been opened for this issue
Help Wanted
You can do this
Suggestion
An idea for TypeScript
Milestone
When an extensionless import fails from an ES module when
moduleResolution
is effectivelynode12
/nodenext
, we currently issue a useless error message.Instead, we should see if we managed to find any files with an extension, or at least mention that an extensionless import is likely to fail.
The text was updated successfully, but these errors were encountered: