Static GitHub Issues

[260] Register component does not work.

prev: Includes SASS file as a nuxt.config.js CSS asset?
next: Nuxt build is failing on uglify step

I added the vue-multiselect component in plugins folder, but it does not work:

plugins/

import Vue from 'vue';

// Include bootstrap JS only
if (process.BROWSER_BUILD) {
  // register globally
  var VueMultiselect = require('vue-multiselect');
  Vue.component(VueMultiselect);
}

vendor:

vendor: ['jquery', 'tether', 'bootstrap', 'vue-multiselect', 'vee-validate', 'vue-resource']
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c224">#c224</a>)</em></sub></div>