{"record":{"id":"e1a47381fd3887e2","repo":"Meituan-Dianping/mpvue","slug":"duplicate-presence-of-slot-name-found-in-the-e1a473","errorCode":null,"errorMessage":"Duplicate presence of slot \"${name}\" found in the same render tree - this will likely cause render errors.","messagePattern":"Duplicate presence of slot \"(.+?)\" found in the same render tree - this will likely cause render errors\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/core/instance/render-helpers/render-slot.js","lineNumber":25,"sourceCode":" */\nexport function renderSlot (\n  name: string,\n  fallback: ?Array<VNode>,\n  props: ?Object,\n  bindObject: ?Object\n): ?Array<VNode> {\n  const scopedSlotFn = this.$scopedSlots[name]\n  if (scopedSlotFn) { // scoped slot\n    props = props || {}\n    if (bindObject) {\n      props = extend(extend({}, bindObject), props)\n    }\n    return scopedSlotFn(props) || fallback\n  } else {\n    const slotNodes = this.$slots[name]\n    // warn duplicate slot usage\n    if (slotNodes && process.env.NODE_ENV !== 'production') {\n      slotNodes._rendered && warn(\n        `Duplicate presence of slot \"${name}\" found in the same render tree ` +\n        `- this will likely cause render errors.`,\n        this\n      )\n      slotNodes._rendered = true\n    }\n    return slotNodes || fallback\n  }\n}\n","sourceCodeStart":7,"sourceCodeEnd":35,"githubUrl":"https://github.com/Meituan-Dianping/mpvue/blob/6c5d78ee04f58c6d782c456dfcf0fe63c0b7f89b/src/core/instance/render-helpers/render-slot.js#L7-L35","documentation":"Emitted by the renderSlot runtime helper when it is asked to render a named slot whose vnode array carries the internal _rendered flag — meaning that same slot's vnodes were already returned earlier in this render pass. The identical vnode array cannot appear at two places in one render tree (vnodes have a single parent linkage), so the duplicate usage will produce patch errors or a blank/duplicated region. Typical cause: the same <slot name=\"x\"> rendered in two branches or the slot referenced twice in one component template.","triggerScenarios":"Thrown at src/core/instance/render-helpers/render-slot.js:25 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Render the named slot in only one place within the component's template","If you need its content in two spots, wrap it in a functional wrapper or clone the vnodes instead of reusing the same slot","Check v-if/v-else branches and loops that both contain the same named slot"],"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"}