Skip to content

Give better error messages for bare imports with badly configured projects #35876

@DanielRosenwasser

Description

@DanielRosenwasser

When targeting es2015 or later, moduleResolution isn't set to node by default.

Perhaps when

  • moduleResolution is calculated to be classic and
  • paths aren't specified

we should hint to the user

Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?

Metadata

Metadata

Assignees

Labels

Experience EnhancementNoncontroversial enhancementsFix AvailableA PR has been opened for this issueFixedA PR has been merged for this issueGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do thisRescheduledThis issue was previously scheduled to an earlier milestoneSuggestionAn idea for TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions