在本地服务器上一切正常。两个Vue组件,都是Algoliaserach,像这样:
import InstantSearch from 'vue-instantsearch';
Vue.use(InstantSearch);
Vue.component('algolia-instantsearch', require('./components/InstantSearch.vue'));
Vue.component('algolia-booksearch', require('./components/BookSearch.vue'));
var app = new Vue({
components: {InstantSearch},
});
var bookshelf = new Vue({
components: {BookSearch},
});
正如我所说,本地效果很好,但一旦推送到服务器,我就会收到此错误:
<algolia-booksearch> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
为什么会发生这种情况的任何想法?