Search code examples
angularcomponentswebstorm

Directives SUDDENLY not recognized in @Component


For some reason, the directives property for the @component metadata is not recognized, red underlined..

image

Resulting my Components cannot be loaded, browser's console screaming :

'account-transactions' is not a known element:

Would really appreciate any help, can't seem to be able to figure out what is going on.

Thanks in advance.


Solution

  • I assume you updated to RC.6

    directives and pipes were deprecated in RC.5 and removed in RC.6

    Use instead declarations in @NgModule()