mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
When an Ivy NgModule is imported into a View Engine build, it doesn't have metadata.json files that describe it as an NgModule, so it appears to VE builds as a plain, undecorated class. The error message shown in this situation generic and confusing, since it recommends adding an @NgModule annotation to a class from a library. This commit adds special detection into the View Engine compiler to give a more specific error message when an Ivy NgModule is imported. PR Close #41534 |
||
|---|---|---|
| .. | ||
| api.ts | ||
| compiler_host.ts | ||
| downlevel_decorators_transform.ts | ||
| entry_points.ts | ||
| inline_resources.ts | ||
| lower_expressions.ts | ||
| metadata_cache.ts | ||
| metadata_reader.ts | ||
| node_emitter.ts | ||
| node_emitter_transform.ts | ||
| patch_alias_reference_resolution.ts | ||
| program.ts | ||
| r3_metadata_transform.ts | ||
| r3_transform.ts | ||
| util.ts | ||