-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
Emits options not declared; causing errors #283
Comments
In looking through your code, I did notice this:
Line 131 in 7f5842c
Is this doing the same thing as declaring emits? EDIT:I see now that this code is only calling the emits. So I don't think the emit options are correctly being applied to the component's instance. Also |
I think not.
This used to work, but now this will probably require copying all the events manually instead of adding them dynamically.
I know, I'll get around to it eventually. |
I would hope that you could add them dynamically. According to Vue docs, it looks like it just needs an array of strings, or an object of where the value of the emit is validation. So I would think you could use the same reduce function to return an array of strings, and add that to the emits declaration. https://vuejs.org/api/options-state.html#emits In the application my company is working on, we've noticed that components will occasionally work without emits being declared. But sometimes it creates problems, or doesn't work consistently. So that may be why it was working. With how we've implemented vue-filepond in our application, the component still works. But we are using |
Is there an existing issue for this?
Have you updated Vue FilePond, FilePond, and all plugins?
Describe the bug
We have been having issues with vue-filepond in our application. We noticed that in your component, emits are not being defined.
https://v3-migration.vuejs.org/breaking-changes/emits-option.html
"It is highly recommended that you document all the events emitted by each of your components using emits."
If you need more information, let me know. I'd be happy to try providing a reproduction and environment details if it's needed.
Reproduction
No reproduction necessary, at this time.
Environment
The text was updated successfully, but these errors were encountered: