{"record":{"id":"2e4c709475aeda81","repo":"Meituan-Dianping/mpvue","slug":"you-are-using-the-runtime-only-build-of-vue-where","errorCode":null,"errorMessage":"You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.","messagePattern":"You are using the runtime-only build of Vue where the template compiler is not available\\. Either pre-compile the templates into render functions, or use the compiler-included build\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/core/instance/lifecycle.js","lineNumber":151,"sourceCode":"    if (vm.$el) {\n      vm.$el.__vue__ = null\n    }\n  }\n}\n\nexport function mountComponent (\n  vm: Component,\n  el: ?Element,\n  hydrating?: boolean\n): Component {\n  vm.$el = el\n  if (!vm.$options.render) {\n    vm.$options.render = createEmptyVNode\n    if (process.env.NODE_ENV !== 'production') {\n      /* istanbul ignore if */\n      if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||\n        vm.$options.el || el) {\n        warn(\n          'You are using the runtime-only build of Vue where the template ' +\n          'compiler is not available. Either pre-compile the templates into ' +\n          'render functions, or use the compiler-included build.',\n          vm\n        )\n      } else {\n        warn(\n          'Failed to mount component: template or render function not defined.',\n          vm\n        )\n      }\n    }\n  }\n  callHook(vm, 'beforeMount')\n\n  let updateComponent\n  /* istanbul ignore if */\n  if (process.env.NODE_ENV !== 'production' && config.performance && mark) {","sourceCodeStart":133,"sourceCodeEnd":169,"githubUrl":"https://github.com/Meituan-Dianping/mpvue/blob/6c5d78ee04f58c6d782c456dfcf0fe63c0b7f89b/src/core/instance/lifecycle.js#L133-L169","documentation":"Error \"You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.\" thrown in Meituan-Dianping/mpvue.","triggerScenarios":"Thrown at src/core/instance/lifecycle.js:151 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pre-compile templates at build time with vue-loader/vueify so render functions ship instead of template strings","Switch to the full compiler-included build (e.g. vue.js instead of vue.runtime.js) via bundler aliases or CDN path","If using in-DOM templates or string template options, move them into pre-compiled single-file components or render functions"],"exampleFix":null,"handlingStrategy":"fallback","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"}