-
Notifications
You must be signed in to change notification settings - Fork 77
Closed
Description
Because of this line, if I have a template which includes something like {{render(data)}}
I get weird errors in the console.
[Vue warn]: Error in render: "TypeError: _vm is undefined"
found in
---> <App>
<Root> vue.runtime.esm.js:56:2
TypeError: "_vm is undefined"
render http://localhost:1234/main.a1fcaaae.js:11645:7
render http://localhost:1234/main.a1fcaaae.js:11659:24
Relevant lines in the generated JS source:
/* template */
Object.assign($ec0164, (function () {
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("div", { attrs: { id: "app" } }, [
_vm._v("\n" + _vm._s(render(_vm.data)) + "\n")
])
}
var staticRenderFns = []
render._withStripped = true
return {
render: render,
staticRenderFns: staticRenderFns,
_compiled: true,
_scopeId: null,
functional: undefined
};
})());
As you can see, it is calling render(_vm.data)
instead of _vm.render(_vm.data)
.
Metadata
Metadata
Assignees
Labels
No labels