Skip to content

improve debug message for invalid dynamic component #3524

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

Merged
merged 1 commit into from
Aug 26, 2016
Merged

Conversation

gsouf
Copy link

@gsouf gsouf commented Aug 25, 2016

I was in this case:

<component :is='componentName' :foo='foo' ></component>

And the component pointed had invalid template, leading to this error:

[Vue warn]: Attribute ":foo" is ignored on component <component> because the component is a fragment instance: http://vuejs.org/guide/components.html#Fragment-Instance

Now this error also gives the name of the component that failed:

[Vue warn]: Attribute ":foo" is ignored on component <component:myComponent> because the component is a fragment instance: http://vuejs.org/guide/components.html#Fragment-Instance

@yyx990803 yyx990803 merged commit 2f9be54 into vuejs:dev Aug 26, 2016
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

Successfully merging this pull request may close these issues.

2 participants