-
Notifications
You must be signed in to change notification settings - Fork 54
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
names conflict error #20
Comments
Hello, @l0rda To be honest, I'm not sure if I'm able to fix this issue in current version of vue-notifications. But I'll take a look if I can do something with it. P.S. Right now I'm working on next iteration of vue-notifictions that won't have such problems. Would be smaller and much more straight forward. P.P.S. Basically that error happens when component's instance already have method with such name ("showMyCustomerError" in your case). It's looks like vue-notifications tried to add same method for the component at least twice. |
Hey @se-panfilov and @l0rda, just thought I'd share that I ran into the same thing and decided to use https://www.npmjs.com/package/vue-geb to centralise notification handling. As an example of a quick implementation: In your "main" page
In a component within a method which should trigger a notification
|
@se-panfilov any ETA for the next iteration release? |
@azhard4int and all other guys. I'll try to release new version this weekend. Anyway, just to notice you - next release will be without backward compatability |
Hi, great library, been using it for a while now (+mini-toastr). No problem whatsoever, except the names conflict (I sometimes reuse the same vue components many times on the same page). Any ETA on the next version that would resolve this issue? |
@daniplaninc Can you provide an example? Sorry I'm super busy, I've try to fix it today, but it's works for me (Basically this kind of errors should happens only if it clashes with methods names) I mean that if you'll provide an example - it helps. |
Sorry for a delayed answer. This is not a breaking issue for me, as far as I know, the only thing that happens is the error message that appears in the console ("VueNotifications: names conflict - ). My application continues to work as expected. As far as an example goes, maybe a description is enough. I have several global components defined (Vue.component(...)) and I use them repeatedly throughout my HTML, sometimes in a v-for. On page load, the error messages about duplication appear. So basically whenever you will release a new version I will switch to get rid of the errors, but I am in no hurry. |
I receive same error, @se-panfilov do you have any news ? |
Any news? |
#20 Fix method's names conflicts when same component used more then once
Fixed in release 0.8.1 |
That fixed it, thanks @se-panfilov! |
Hello,
when i'm using 2 or more instances of one vue component with notifications block, i got error in console:
The text was updated successfully, but these errors were encountered: