Recently, I added angular2-notifications to my Angular 4 project and everything worked perfectly. However, when I switched machines, I encountered an issue while trying to compile using ng serve
:
I received the following error message: Error: Error encountered resolving symbol values statically. Calling function 'SimpleNotificationsModule', function calls are not supported. It is recommended to replace the function or lambda with a reference to an exported function. The issue seems to be related to resolving symbol AppModule in myapp/src/app/app.module.ts.