fuse-box-vue-seed icon indicating copy to clipboard operation
fuse-box-vue-seed copied to clipboard

Problem when using Vue.extend to export component definitions

Open padcom opened this issue 8 years ago • 1 comments

Currently when using TypeScript to get good VS Code support for single file components instead of

export default { }

one needs to use

import Vue from 'vue'
export default Vue.extend({ ... })

This currently leads to the following error:

[Vue warn]: Failed to mount component: template or render function not defined.

How can I fix this?

padcom avatar Oct 25 '17 23:10 padcom

You have to export an object as single file component

buckle2000 avatar Feb 08 '18 06:02 buckle2000