feat(ivy): throw compilation error when providing undecorated classes (#34460)
Adds a compilation error if the consumer tries to pass in an undecorated class into the `providers` of an `NgModule`, or the `providers`/`viewProviders` arrays of a `Directive`/`Component`. PR Close #34460
This commit is contained in:
@ -363,7 +363,7 @@ export class TraitCompiler {
|
||||
}
|
||||
}
|
||||
|
||||
if (result.diagnostics !== undefined) {
|
||||
if (result.diagnostics !== undefined && result.diagnostics.length > 0) {
|
||||
trait = trait.toErrored(result.diagnostics);
|
||||
} else {
|
||||
if (result.data !== undefined) {
|
||||
|
Reference in New Issue
Block a user