Having trouble registering new components in my Vue app. I have successfully registered some components, but when I try to register a new one, I encounter the error:
Unknown custom element: <store> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
(found in <Root>)
In my app.js file, I have the following component registrations:
Vue.component('example', require('./components/Example.vue'));
Vue.component('register', require('./components/Register.vue'));
Vue.component('loginmodal', require('./components/LoginModal.vue'));
Vue.component('products', require('./components/Products.vue'));
Vue.component('store', require('./components/Store.vue'));
I've noticed that Store.vue is similar to Example.vue, so I won't include it here. Interestingly, using existing components like 'register' works fine on the page. It's worth mentioning that I'm working with Laravel, where Vue is pre-included and configured with default example component.