[Vuejs]-Vueify / VueRouter / Laravel – Component not defined

0πŸ‘

βœ…

You need to register the component with Vue. You are telling the router to build a component view when the route changes, but Vue also needs to know about the component.

After you import your component, try:
Vue.component('Form2016_1099_misc', Form2016_1099_misc);

See: https://vuejs.org/guide/components.html#Registration

0πŸ‘

I was apparently loading Vue twice. Once from NPM and the other from the CDN. I removed the CDN and now it works fine…

Leave a comment