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

Add specific error message when there is no default export for a Component #1694

Open
mfickett opened this issue Jul 10, 2020 · 0 comments · May be fixed by #1756
Open

Add specific error message when there is no default export for a Component #1694

mfickett opened this issue Jul 10, 2020 · 0 comments · May be fixed by #1756

Comments

@mfickett
Copy link

What problem does this feature solve?

When a component .vue file does not have a default export, the Component cannot be loaded (as in #1234). Currently, the error message is unclear (I got "Uncaught TypeError: Cannot set property 'render' of undefined"). It would be clearer to generate an error saying explicitly that the component definition did not have a default export which is required.

What does the proposed API look like?

Error: Component MyComponent.vue does not have a default export. See https://vuejs.org/v2/guide/components-registration.html#Local-Registration .

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

Successfully merging a pull request may close this issue.

2 participants