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

[Vue warn]: Avoid using non-primitive value as key, use string/number value instead. #2

Closed
keyhoffman opened this issue Jul 31, 2020 · 2 comments

Comments

@keyhoffman
Copy link

I am getting the following error: [Vue warn]: Avoid using non-primitive value as key, use string/number value instead.

I think the error is coming from the line: v-for="attachment in tempAttachmentChanged" :key="attachment"

You are using the attachment object as a key. The key needs to be a string/number. Using attachment.name as the key will probably fix this

image

@keyhoffman
Copy link
Author

keyhoffman commented Jul 31, 2020

There are two lines where this is happening in the file handyUploader.vue:

  1. 353
  2. 414

@alijahanpak
Copy link
Owner

Thank you @keyhoffman for checking handy-uplader package. I fixed this issue in new release (1.1.0).

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

2 participants