{"record":{"id":"1b3397f15e2d8d64","repo":"Meituan-Dianping/mpvue","slug":"el-tag-v-for-alias-in-exp-component-1b3397","errorCode":null,"errorMessage":"<${el.tag} v-for=\"${alias} in ${exp}\">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.","messagePattern":"<(.+?) v-for=\"(.+?) in (.+?)\">: component lists rendered with v-for should have explicit keys\\. See https://vuejs\\.org/guide/list\\.html#key for more info\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/compiler/codegen/index.js","lineNumber":180,"sourceCode":"\nexport function genFor (\n  el: any,\n  state: CodegenState,\n  altGen?: Function,\n  altHelper?: string\n): string {\n  const exp = el.for\n  const alias = el.alias\n  const iterator1 = el.iterator1 ? `,${el.iterator1}` : ''\n  const iterator2 = el.iterator2 ? `,${el.iterator2}` : ''\n\n  if (process.env.NODE_ENV !== 'production' &&\n    state.maybeComponent(el) &&\n    el.tag !== 'slot' &&\n    el.tag !== 'template' &&\n    !el.key\n  ) {\n    state.warn(\n      `<${el.tag} v-for=\"${alias} in ${exp}\">: component lists rendered with ` +\n      `v-for should have explicit keys. ` +\n      `See https://vuejs.org/guide/list.html#key for more info.`,\n      true /* tip */\n    )\n  }\n\n  el.forProcessed = true // avoid recursion\n  return `${altHelper || '_l'}((${exp}),` +\n    `function(${alias}${iterator1}${iterator2}){` +\n      `return ${(altGen || genElement)(el, state)}` +\n    '})'\n}\n\nexport function genData (el: ASTElement, state: CodegenState): string {\n  let data = '{'\n\n  // directives first.","sourceCodeStart":162,"sourceCodeEnd":198,"githubUrl":"https://github.com/Meituan-Dianping/mpvue/blob/6c5d78ee04f58c6d782c456dfcf0fe63c0b7f89b/src/compiler/codegen/index.js#L162-L198","documentation":"Error \"<${el.tag} v-for=\"${alias} in ${exp}\">: component lists rendered with v-for should have explicit keys. See https://vuejs.org/guide/list.html#key for more info.\" thrown in Meituan-Dianping/mpvue.","triggerScenarios":"Thrown at src/compiler/codegen/index.js:180 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add an explicit :key to the component rendered with v-for","Use a stable unique identifier rather than the array index","Keys are only warned for components/slot/template-tag-adjacent cases, not plain elements"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6c5d78ee04f58c6d782c456dfcf0fe63c0b7f89b","analyzedAt":"2026-09-02T05:17:40.946Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T11:17:12.671Z"}