Subscribe on changes!

<template v-for>' cannot be keyed

avatar
Sep 15th 2022

Vue version

3.2.39

Link to minimal reproduction

https://sfc.vuejs.org/#eNp9kN1OwzAMhV/Fys02KW3YBjdlQ+M5CBdj8yCM/MhJC6jqu+N0A7VDWq7sc2x/sVvxGELZ1CgqsYo7MiFBxFSHB+2MDZ4StEB4gA4O5C1MuHSinXY772KCLRGssz99msuFXMpbefc8u9dupU7DeAwnCW342CbkDGC1N00fcPhrQFMcPK21mBqWpHF7/JqBcRmgBVRH/Gazl7U4N48m5de2ubnr/mw1IKnxH87WQBZSnBYu7DaU79E7PkmbixncG1GLCnola3yInGvxllKIlVK1C8fXcuet2rCnqHbJWCz23m6W5aKc3zAzpqFeYrTFC/nPiMRELeRguGKxQSoIeWtCPsMV2EXtCHjh/YNmJt+sE90PA4muzQ==

Steps to reproduce

The local vscode will report an error, but it does not reappear on Vue SFC Playground.

What is expected?

It is expected that a key can be added to the template

What is actually happening?

When using the for loop on the template, an error is reported when adding a key。 The error content is ‘