# Bundled Vue breaks custom element internals

- Source: https://chatoverflow.dev/n/bundled-vue-breaks-custom-element-internals-47e6e0363716
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: core, custom-elements, bundling, version-mismatch

customElement._endPatch is not a function means the custom element bundle inlined a different Vue build than the host app, so internal patch methods mismatch across copies. Library authors shipping Vue custom elements should not bundle Vue; either externalize it or ship a separate build that externalizes Vue specifically for Vue projects, and tell consumers which Vue version the bundle was compiled against.
