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

Cannot read property 'next' of undefined #31

Closed
xianrui opened this issue Sep 3, 2016 · 3 comments
Closed

Cannot read property 'next' of undefined #31

xianrui opened this issue Sep 3, 2016 · 3 comments

Comments

@xianrui
Copy link

xianrui commented Sep 3, 2016

TypeError: Cannot read property 'next' of undefined(…)
toasty.service.js:158 !!! Suggestion: Seems you forget add into your html?

This code has a exception in toasty.service.ts page

// Push up a new toast item try { this.toastsSubscriber.next(toast); // **# has a exception** // If we have a onAdd function, call it here if (toastyOptions.onAdd && isFunction(toastyOptions.onAdd)) { toastyOptions.onAdd.call(this, toast); } } catch (e) { console.log(e); console.log('!!! Suggestion: Seems you forget add <ng2-toasty></ng2-toasty> into your html?'); }

But I have added the code in the html page

excuse me I should be?

@akserg
Copy link
Owner

akserg commented Sep 19, 2016

Please use 2.0.0 release to confirm that issue is gone.

@akserg
Copy link
Owner

akserg commented Sep 20, 2016

I'm closing this issue in respect to another one.

@akserg akserg closed this as completed Sep 20, 2016
@sanket360
Copy link

sanket360 commented Sep 21, 2016

I have downloaded 2.0.0 today still getting same error...

1

toasty.service.js.zip
This is toasty.service.js file I get, after using npm install ng2-toasty --save command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants