-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ivy): provide a more detailed error message for NG6002/NG6003 (#3…
…5620) NG6002/NG6003 are errors produced when an NgModule being compiled has an imported or exported type which does not have the proper metadata (that is, it doesn't appear to be an @NgModule, or @directive, etc. depending on context). Previously this error message was a bit sparse. However, Github issues show that this is the most common error users receive when for whatever reason ngcc wasn't able to handle one of their libraries, or they just didn't run it. So this commit changes the error message to offer a bit more useful context, instructing users differently depending on whether the class in question is from their own project, from NPM, or from a monorepo-style local dependency. PR Close #35620
- Loading branch information
Showing
2 changed files
with
96 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters