3

I'm getting the error

Selectize: Dependency MicroPlugin is missing

Make sure you either: (1) are using the "standalone" version of Selectize, or (2) require MicroPlugin before you load Selectize.

application.js:

//= require jquery
//= require jquery_ujs
//= require selectize
//= require turbolinks
//= require bootstrap-sprockets
//= require jquery.validate
//= require jquery.validate.additional-methods
//= require_tree .
David Silva Smith
  • 11,498
  • 11
  • 67
  • 91

1 Answers1

7

I changed my application.js to

//= require selectize/standalone/selectize

I figured it out by looking at the load paths

~/.rvm/gems/ruby-2.3.1/gems/rails-assets-selectize-0.12.3/app/assets/javascripts

and found standalone was in /selectize/standalone/selectize.js

I knew to look there by looking at their examples.

Aamir
  • 16,329
  • 10
  • 59
  • 65
David Silva Smith
  • 11,498
  • 11
  • 67
  • 91
  • 1
    I had the same problem. My mistake was that I linked the selectize.js file that is outside of standalone directory, linking it to the one in standalone directory solved the problem for me. – Mehul Tandale Sep 19 '16 at 23:19