Uncaught TypeError: Cannot read property 'mixin' of undefined in 0.12.0.
Using version 0.12.0, I get this message in the both the standalone and regular versions. Is there a fix for this?
Hm, are you using require.js or any sort of bundler? The demo site is using 0.12.0 w/o this problem
I just tried to use the stand alone selectize.js and I got the same error at line 535 from MicroPlugin.mixin(Selectize). It appears MicroPlugin is not defined.
My original includes (brace yourself):
<script type="text/javascript" language="javascript" src="/Scripts/jquery-2.1.1.js"></script>
<script type="text/javascript" language="javascript" src="/Scripts/jquery-ui-1.11.4.min.js"></script>
<script type="text/javascript" language="javascript" src="/Scripts/jquery.validate.min.js"></script>
<script type="text/javascript" language="javascript" src="/Scripts/bootstrap.js"></script>
<script type="text/javascript" language="javascript" src="/Scripts/bootstrap-switch.js"></script>
<script type="text/javascript" language="javascript" src="/DataTables-1.10.4/media/js/jquery.dataTables.js"></script>
<script type="text/javascript" language="javascript" src="//cdn.datatables.net/plug-ins/3cfcc339e89/integration/bootstrap/3/dataTables.bootstrap.js"></script>
<script type="text/javascript" language="javascript" src="/DataTables-1.10.4/extensions/RowGrouping/jquery.dataTables.grouping.js"></script>
<script type="text/javascript" language="javascript" src="//cdn.datatables.net/responsive/1.0.3/js/dataTables.responsive.js"></script>
<script type="text/javascript" language="javascript" src="//cdn.datatables.net/plug-ins/3cfcc339e89/sorting/enum.js"></script>
<script type="text/javascript" language="javascript" src="/Scripts/jquery.jstepper.min.js"></script>
<script type="text/javascript" language="javascript" src="/Scripts/bootbox.min.js"></script>
<script type="text/javascript" language="javascript" src="/Scripts/fake-select.js"></script>
<script type="text/javascript" language="javascript" src="/Scripts/selectize/selectize.js"></script>
This error went away when I moved the include of this file from the bottom of the list to directly under:
<script type="text/javascript" language="javascript" src="/Scripts/jquery-2.1.1.js"></script>
<script type="text/javascript" language="javascript" src="/Scripts/jquery-ui-1.11.4.min.js"></script>
<script type="text/javascript" language="javascript" src="/Scripts/jquery.validate.min.js"></script>
Hope this helps debug. Thanks for the great component!
I'm using 0.12.1, standalone bundle works.
SAme issue here with 0.12.1 Uncaught TypeError: Cannot read property 'mixin' of undefined
I'm getting the very same, we do include jquery in our code, but I've tried both standalone and regular, I've tried moving it all around, below, above jquery but I'm still getting the error. Is there clash between the standalone and jquery? Do I need a specific version of jquery? Does it clash with other jquery plugins like jquery.complexify.js, jquery-ui.min.js, jquery.cookie.js and we have multiple others. Any help is appreciated.
same here Uncaught TypeError: Cannot read property 'mixin' of undefined, error when using this version https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.12.1/js/selectize.min.js
but no problem when using this https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.12.1/js/standalone/selectize.js
I was using 0.12.1/js/standalone/selectize.min.js with requireJS and ran into this problem. Switching to the non-minified version in the standalone directory fixed this for me though I would be interested to know what's going on here. Anyone have any idea?
Including mircoplugin before including selectize solved this for me.
Can someone confirm that using js/standalone/selectize.min.js at 0.12.2, this is still a problem?
Confirming that there is no problem using js/standalone/selectize.min.js at 0.12.2.
Thank you @bojanv91.
Resolution: Make sure to use standalone distribution which comes with Microplugin.
@joallard Just fyi I faced the same error with 0.12.2, I switched to using the standalone version which fixed the problem (both were min versions).
This should be fixed at least by logging some hint on the console. I almost gave up and used another script.
@styxxx Good point, as I've been quick to point out on other repos, good errors are clear to the cause of the problem and nudge people in how to fix it, which this is neither. However I'm sure you've found just Googling the message will bring you around here.