ng2-notifications icon indicating copy to clipboard operation
ng2-notifications copied to clipboard

Unexpected value PushNotificationComponent with ng build --prod

Open sami93 opened this issue 7 years ago • 1 comments
trafficstars

if i do ng serve --aot or i do ng build --prod i see the next error message

ERROR in Error: Unexpected directive 'PushNotificationComponent in C:/.../node_modules/ng2-notifications/src/app/components/notification.compon ent.d.ts' imported by the module 'SharedModule in C:/.../src/app/shared/shared.module.ts'

Info : npm : 5.6.0 node : 8.11.2 OS: win32 x64 Angular : 2.4.10

sami93 avatar Jun 01 '18 14:06 sami93

I get the same thing error. We've been behind on upgrading Angular, and this is now officially a blocker with AOT being more aggressive in the newer version.

jeffaxial avatar Jun 18 '18 21:06 jeffaxial