Z
Z
Zhandos Timabay2019-11-05 15:45:59
Vue.js
Zhandos Timabay, 2019-11-05 15:45:59

Can't connect component via vue loader without node/webpack?

Unable to connect external components through vue loader.
Error:
Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.
Although the component has a name field.
I connect like this:

new Vue ({
el: '#app'
components: {
     'NumberInputSpinner': httpVueLoader('js/components/NumberInputSpinner.vue')
 },

And the component itself looks like this:
....
<script>
export default {
  name: 'NumberInputSpinner',

......
Thanks in advance

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question