fuse-box / fuse-box-vue-seed

Get started with Vue.js using FuseBox module loader and bundler
MIT License
74 stars 13 forks source link

Problem when using Vue.extend to export component definitions #10

Open padcom opened 6 years ago

padcom commented 6 years ago

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?

buckle2000 commented 6 years ago

You have to export an object as single file component