Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
padcom opened this issue Oct 25, 2017 · 1 comment
Open

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

padcom opened this issue Oct 25, 2017 · 1 comment

Comments

@padcom
Copy link

padcom commented Oct 25, 2017

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
Copy link

You have to export an object as single file component

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants