In my Nuxt app I have the following line that triggers the error mentioned in the title of this question:
<template v-for="(project, index) in existingProjects">
<span :key="project.projectId"></span>
I tried to have the :key
attribute on the template
element and I also tried to use just index
as the key, to no avail.
Any idea?
span
, those elements would also need unique keys. Consider moving those elements into a component. – Yenyenisei