Solve component is a fragment instance issue

I’ve ever face the following error message or anything related to component fragment instance issue:

Attribute “v-cloak” is ignored on component <component-name> because the component is a fragment instance

Just go to your component template and wrap everything in a parent element.

eg: If your template is

<div> To do {{}} </div>
<div> This is done! </div>

Wrap it with a simple root div element.

<div> To do {{}} </div>
<div> This is done! </div>

This will solve your problem.

If you are a Vue.js developer and looking for a job, subscribe to our mailing list. Or if you are looking for a Vue.js developer, feel free to post your job requirements here in
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.