selectize.js icon indicating copy to clipboard operation
selectize.js copied to clipboard

Cannot call method 'mixin' of undefined

Open sylouuu opened this issue 12 years ago • 14 comments

Hello,

Got this error on the line: MicroPlugin.mixin(Selectize);

Using jQuery 2.0.3. Using selectize 0.8.5.

Calling with:

$('select').selectize();

Regards

sylouuu avatar Dec 11 '13 17:12 sylouuu

If you're not including the dependencies manually, you must use the standalone build.

brianreavis avatar Dec 11 '13 17:12 brianreavis

Thank's, I thought that the standalone build was without jQuery.

sylouuu avatar Dec 11 '13 17:12 sylouuu

That's a lil missleading, ran into the same problem. Thanks.

stratease avatar Jan 26 '14 01:01 stratease

same here, but thanks to this thread :)

jsugiarto avatar Feb 11 '14 05:02 jsugiarto

same here, but thanks to this thread :)

AlecRust avatar Jul 04 '14 10:07 AlecRust

With this being a recurring issue, is there any way this can be made more clear? In the readme, it states:

standalone/selectize.js — With dependencies, minus jquery selectize.js — Without dependencies

brianreavis avatar Jul 04 '14 18:07 brianreavis

:sob: :broken_heart:

liverbool avatar Sep 10 '14 07:09 liverbool

I'm using the one in the standalone folder, but minified (doesnt work).

I had to use standalone unminified version for the error to go away.

9mm avatar Sep 19 '14 04:09 9mm

how would i tell bower which to use?

dougfarre avatar Apr 08 '15 19:04 dougfarre

As @9mm stated, the minified version of the standalone version also gives this same error. It would seem there is a build misconfiguration with generating the minified version of the file since the unminified standalone build works fine. This is still true as of 0.12.1.

dlong500 avatar May 03 '15 09:05 dlong500

Same here. I had the same issue like @9mm and @dlong500

serchavalos avatar Jul 09 '15 10:07 serchavalos

I have the same problem as @9mm

The minified version gives the same error... "Unable to get property 'mixin' of undefined or null reference"

ghost avatar Jul 31 '15 17:07 ghost

I am unable to use and of the standalone builds.

JasonMannon avatar Aug 19 '15 20:08 JasonMannon

This is still an issue, the standalone builds are not usable because they are missing the microplugin.js and the sifter.js code. You can find those here https://github.com/brianreavis/microplugin.js/blob/master/src/microplugin.js and here https://github.com/brianreavis/sifter.js/blob/master/sifter.js

Once I added those into the selectize.js it solved the problem. Hope that helps!

stevoPerisic avatar Nov 07 '15 00:11 stevoPerisic