uni-app error key duplicate problem

Recently, I ran a uni-app applet project that had been running for several years to h5, and then a bunch of errors were reported. One of them reported an error that surprised me.

chunk-vendors.js:46165 [Vue warn]: Duplicate keys detected: 'undefined_0'. This may cause an update error.

What do you think of when you see this error?
The first time I thought that there might be a key in the format of: variable + underscore + subscript
to search :key=, and then check whether there is any key in the format of variable + underscore,
the result is none, and then I can only find all the keys in the page v-for=, and then put the whole Comment on the code block, and then check if there is any error, and finally find one :key="item.id", check the data, and find that there is no id attribute in the object

nn, shouldn't it be reported that undefined is repeated? It made me search for a long time
, and then I deliberately wrote: key="undefined", and reported an error again, but it did not reproduce in the pure vue project. Is this a bug in uni-app?

Guess you like

Origin blog.csdn.net/xinTianou123/article/details/128906614