{"record":{"id":"673df920f5251f75","repo":"Meituan-Dianping/mpvue","slug":"v-bind-without-argument-expects-an-object-or-array-673df9","errorCode":null,"errorMessage":"v-bind without argument expects an Object or Array value","messagePattern":"v-bind without argument expects an Object or Array value","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/core/instance/render-helpers/bind-object-props.js","lineNumber":24,"sourceCode":"  warn,\n  isObject,\n  toObject,\n  isReservedAttribute\n} from 'core/util/index'\n\n/**\n * Runtime helper for merging v-bind=\"object\" into a VNode's data.\n */\nexport function bindObjectProps (\n  data: any,\n  tag: string,\n  value: any,\n  asProp: boolean,\n  isSync?: boolean\n): VNodeData {\n  if (value) {\n    if (!isObject(value)) {\n      process.env.NODE_ENV !== 'production' && warn(\n        'v-bind without argument expects an Object or Array value',\n        this\n      )\n    } else {\n      if (Array.isArray(value)) {\n        value = toObject(value)\n      }\n      let hash\n      for (const key in value) {\n        if (\n          key === 'class' ||\n          key === 'style' ||\n          isReservedAttribute(key)\n        ) {\n          hash = data\n        } else {\n          const type = data.attrs && data.attrs.type\n          hash = asProp || config.mustUseProp(tag, type, key)","sourceCodeStart":6,"sourceCodeEnd":42,"githubUrl":"https://github.com/Meituan-Dianping/mpvue/blob/6c5d78ee04f58c6d782c456dfcf0fe63c0b7f89b/src/core/instance/render-helpers/bind-object-props.js#L6-L42","documentation":"Raised by bindObjectProps, the render helper for v-bind=\"value\" object syntax. The expression is truthy but isObject(value) fails — it is a primitive like a string, number or boolean rather than an Object or Array. The helper expects a map of attribute/prop names to values (an Array is also accepted and merged with toObject); any other truthy value is rejected and its bindings are dropped.","triggerScenarios":"Thrown at src/core/instance/render-helpers/bind-object-props.js:24 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass an object of attributes: v-bind=\"{ id: itemId, href: url }\"","Verify the bound expression evaluates to an object (or array of objects) at render time — check defaults like '' or 0 on the source variable","Use single-argument v-bind:attr=\"value\" for binding one attribute"],"exampleFix":null,"handlingStrategy":"type-guard","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"}