-
Notifications
You must be signed in to change notification settings - Fork 71
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
After Updating Ng Snootify in Angular 9 Bugs #88
Comments
having the same issue. what is the version of your ng-snotify? |
Have you tried to use enum value ? this.SnotifyService.success('test1', 'TEST2', {
timeout: 100,
showProgressBar: true,
closeOnClick: true,
pauseOnHover: true,
position: SnotifyPosition.rightTop
}); Source: doc |
Thanks for answering. I have found problem in
Due to Error
Logs
|
Angular 9 and Snotify 9.0.1 Thanks |
did it solve the issue upgrading to ng-snotify 9.0.1? Please let me know, Thanks. |
by changing library code /** Thanks |
After changing the position: "rightTop" to position: SnotifyPosition.rightTop it solved my error which is the position stuff error, however new error occurs.
S'il vous plaît laissez-moi savoir si quel est le problème avec celui-ci. Je vous remercie. |
After you fix this issue did you encounter an issue about Thanks |
No friend i did encounter angular ivy issue "ng-snotify": "^9.0.1", Please can you run
Thanks |
Thanks for the response
if changed code to exception raised |
You must import SnotifyPosition in your imports just like this one
If you are using vscode you can just hover over the error and click on quick fix and import SnotifyPosition |
Hi, I'm preparing a PR, which I hope will fix the problem. |
Many Thanks for the help. |
Many Thanks |
Hi, Already solved my problem, for future developers who will encounter this kind of issues.
Solution A: This solution works when your previous ng-snotify structure is like this one. sample only. As you can see the position property is string. so you must set it to string to prevent this kind of issue.
Solution B:
The only thing you need to change is the position property and your final structure must be this one.
and dont forget to import SnotifyPosition to your imports or else you will have an error in SnotifiyPosition not declared. Minimal error: Thanks for the help author. |
Please can you help me in stackblitz Snotify css is not loading in Stackblitz |
Please take a look at this stackblitz code. https://stackblitz.com/edit/angular-scss-demo-zrb8w9?file=src%2Fapp%2Fapp.component.html |
Many Thanks |
im using angular 9 and facing same Issue here {{ TypeError: Cannot read property 'toast' of undefined TypeError: Cannot read property 'toast'}} |
can you show me the snippet of your snotify? and what version of ng-snotify
are you using?
…On Tue, 14 Jul 2020, 4:06 pm ahmadalsadder, ***@***.***> wrote:
same Issue here {{ TypeError: Cannot read property 'toast' of undefined
TypeError: Cannot read property 'toast'}}
any new regarding to this ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#88 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADNAKEAKZBMGNGUFQQP3WB3R3QGZHANCNFSM4LRZKE5A>
.
|
@gitalvininfo the solved by SnotifyModule.forRoot() becuase i have multiple module |
HI All,
I have updated to Angular 9 and ng snotify with verison 9.0.1.
Angular code
Type '"rightTop"' is not assignable to type 'SnotifyPosition'.
Error
./node_modules/ng-snotify/styles/material.css ./node_modules/angular-archwizard/archwizard.css .
Module not found: Error: Can't resolve '\APPS\app\node_modules\ng-snotify\styles\material.css' in '\APPS\app'
/**
*/
export declare enum SnotifyPosition {
leftTop = "leftTop",
leftCenter = "leftCenter",
leftBottom = "leftBottom",
rightTop = "rightTop",
rightCenter = "rightCenter",
rightBottom = "rightBottom",
centerTop = "centerTop",
centerCenter = "centerCenter",
centerBottom = "centerBottom"
}
The text was updated successfully, but these errors were encountered: