angular报错:Please add a @Pipe/@Directive/@Component annotation

angular error 

ERROR Error: Uncaught (in promise): Error: Unexpected module 'B' declared by the module 'A'. Please add a @Pipe/@Directive/@Component annotation.

When introducing (Import) in a "module A" while another file "Module B", is introduced into the module needs to be added to the modified @ngModule currently imports this module in the field, if applied to the

declarations, it would report the above error.
 

Guess you like

Origin www.cnblogs.com/johnjackson/p/11127116.html