{"record":{"id":"62a9dfde2fc6be23","repo":"Meituan-Dianping/mpvue","slug":"invalid-v-for-expression-exp-62a9df","errorCode":null,"errorMessage":"Invalid v-for expression: ${exp}","messagePattern":"Invalid v-for expression: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/compiler/parser/index.js","lineNumber":335,"sourceCode":"    }\n    el.key = exp\n  }\n}\n\nfunction processRef (el) {\n  const ref = getBindingAttr(el, 'ref')\n  if (ref) {\n    el.ref = ref\n    el.refInFor = checkInFor(el)\n  }\n}\n\nfunction processFor (el) {\n  let exp\n  if ((exp = getAndRemoveAttr(el, 'v-for'))) {\n    const inMatch = exp.match(forAliasRE)\n    if (!inMatch) {\n      process.env.NODE_ENV !== 'production' && warn(\n        `Invalid v-for expression: ${exp}`\n      )\n      return\n    }\n    el.for = inMatch[2].trim()\n    const alias = inMatch[1].trim()\n    const iteratorMatch = alias.match(forIteratorRE)\n    if (iteratorMatch) {\n      el.alias = iteratorMatch[1].trim()\n      el.iterator1 = iteratorMatch[2].trim()\n      if (iteratorMatch[3]) {\n        el.iterator2 = iteratorMatch[3].trim()\n      }\n    } else {\n      el.alias = alias\n    }\n  }\n}","sourceCodeStart":317,"sourceCodeEnd":353,"githubUrl":"https://github.com/Meituan-Dianping/mpvue/blob/6c5d78ee04f58c6d782c456dfcf0fe63c0b7f89b/src/compiler/parser/index.js#L317-L353","documentation":"Dev-only warning in processFor: the v-for attribute value did not match forAliasRE, the pattern requiring 'alias in expression' (optionally with iterators). Without that structure the compiler cannot extract the iterable and alias, so the directive is skipped and the list will not render.","triggerScenarios":"Thrown at src/compiler/parser/index.js:335 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Rewrite v-for in 'item in items' (or '(item, index) in items') form","Remove stray characters or newlines breaking the expression","Use v-for=\"(value, key) in object\" for objects"],"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"}