angular-notifier icon indicating copy to clipboard operation
angular-notifier copied to clipboard

Angular 12 issue with NotifierOptions

Open basilismt8 opened this issue 3 years ago • 2 comments

Hello!!! I have a issue with angular 12 and NotifierOptions. I did all the config correctly as you have on the package page (I also did it for angular 7 and I had no issue), but as you will see in the screenshot I send you the notifications appear like this and i can not find any solution. Could you help me? Thank you!!!

Screenshot

basilismt8 avatar Mar 23 '22 09:03 basilismt8

I had the same issue

` error NG1010: Value at position 0 in the NgModule.imports of NotifierModule is not a reference
Value could not be determined statically.

44 imports: [NotifierModule.withConfig(customNotifierOptions)], ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/app/modules/notifier.module.ts:44:13 44 imports: [NotifierModule.withConfig(customNotifierOptions)], ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Unable to evaluate this expression statically. src/app/modules/notifier.module.ts:44:13 44 imports: [NotifierModule.withConfig(customNotifierOptions)], ~~~~~~~~~~~~~~~~~~~~~~~~~ Unable to evaluate an invalid expression.

Error: src/app/modules/notifier.module.ts:44:28 - error TS2339: Property 'withConfig' does not exist on type 'typeof NotifierModule'.

44 imports: [NotifierModule.withConfig(customNotifierOptions)], `

Crypthos avatar Mar 29 '22 01:03 Crypthos

you need to import the notifier style. https://github.com/dominique-mueller/angular-notifier#3-import-the-styles

put this import of your style.css/scss as follows @import "~angular-notifier/styles";

sasikamm avatar Jan 25 '23 09:01 sasikamm