Closed nerijunior closed 7 years ago
http://vuejs.org/guide/components.html#Fragment-Instance
You can't have a component as your top level element in the template. Wrap router-view with a div tag.
template : '<div><router-view></router-view></div>',
But since you're not really using any vue single file component syntax you should just move the app.vue logic over to your main.js.
This isn't the place for this sort of question though. Post it on the forum or gitter.
I got this error when using vue-router:
Attribute "id" is ignored on component <div> because the component is a fragment instance:
index.html
main.js
app.vue:
I've tried some alternatives without success, some idea?