Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular 12 issue with NotifierOptions #236

Open
basilismt8 opened this issue Mar 23, 2022 · 2 comments
Open

Angular 12 issue with NotifierOptions #236

basilismt8 opened this issue Mar 23, 2022 · 2 comments
Labels
needs repro Indicates that this issue needs a reproduction before further steps can be taken type: bug Indicates an unintended behaviour, unexpected problem, crash

Comments

@basilismt8
Copy link

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

@Crypthos
Copy link

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)],
`

@dominique-mueller dominique-mueller added type: bug Indicates an unintended behaviour, unexpected problem, crash needs repro Indicates that this issue needs a reproduction before further steps can be taken labels Mar 29, 2022
@sasikamm
Copy link

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";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro Indicates that this issue needs a reproduction before further steps can be taken type: bug Indicates an unintended behaviour, unexpected problem, crash
Projects
None yet
Development

No branches or pull requests

4 participants