-
Notifications
You must be signed in to change notification settings - Fork 496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"vex not defined" when implemeting using requireJS #60
Comments
I am having the same problem with this. I add in the vex and vex.dialog libraries as per the documentation and I get: Uncaught ReferenceError: vex is not defined Does this library support AMD? The documentation suggests it does but I am unable to get it to work. |
Could you show more of the code that creates the dialog? Are you requiring ps: #64 may be helpful. |
I'm having the same issue. |
I think this is related to #141, and the fix could be to change "vex" to "vex-js" in the array of It worked for me, my |
Note there are big changes planned in the next version of vex is #160 you are encouraged to review the new changes and see if ti would meet your needs here. |
Hey all! #160 is merged and I want to make sure your problem is fixed. vex is now built with browserify's standalone option, which should make it compatible with all module systems, including requirejs and AMD. If you don't mind, can you try the latest files (vex files & vex-dialog files or |
Assuming this worked fine :) |
Working on a web app and trying to implement Vex Dialogs using requireJS. Everything compiles fine, however whenever I open the page all I get is a reference error saying vex is not defined. Have tried using the minified and unminified files, vex.dialog.js and vex.js.
In my gruntfile under paths:
jquery : 'extra/jquery-2.1.1.min',
. . . .
vex : 'extra/vex',
In my main.js, the file that calls it:
require([ "system", "ui", "jquery", "vex" ]);
Just to test it working I have the standard confirm demo pasted in, but continue getting the reference error. Is there something I'm just not doing correctly in terms of requireJS?
The text was updated successfully, but these errors were encountered: