Skip to content
This repository was archived by the owner on Feb 27, 2019. It is now read-only.

Conversation

@atomantic
Copy link

fixes issue:

WARNING in ./~/vue-loader/lib/template-compiler.js?{"id":"data-v-30277f8a"}!./~/vue-loader/lib/selector.js?type=template&index=0!./src/app/techs/Techs.vue
<tech v-for="tech in techs">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.
 @ ./src/app/techs/Techs.vue 5:2-178
 @ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/app/Main.vue
 @ ./src/app/Main.vue
 @ ./src/index.js

Copy link

@FossPrime FossPrime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one slight change

</h2>
<div class="techs">
<tech v-for="tech in techs" :tech="tech"></tech>
<tech v-for="tech in techs" :tech="tech" :key="item.key"></tech>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use tech.key instead, item.key fails to load for me, though it does get rid of the error.

@atomantic
Copy link
Author

squashed in.

Copy link

@FossPrime FossPrime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants