Duplicate keys detected: ‘XXXX’. This may cause an update error. Solution

This may cause an update error in Vue project: duplicate keys detected: ‘c1812170006’

Although it does not affect the use, but the error has to be resolved

As soon as you enter the page, you will get this red error. After checking the information on the Internet, you say that in the V-for loop, the key value may be repeated, so you will report this error.

After checking, there is a V-for loop on the page

The key value must be unique. If it is repeated, an error will be reported.
this situation can be avoided by changing the key value to index

 

Read More: