Comments (7)
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 npm install [email protected] vex-dialog
) and let me know if they're working? Thanks!
from vex.
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.
from vex.
Could you show more of the code that creates the dialog? Are you requiring vex.dialog
and then using vexDialog.alert
(or are you using vex
directly and not the vex.dialog
shortcuts?). I'm going off of what I see in https://github.com/HubSpot/vex/blob/master/js/build-test-amd.html
ps: #64 may be helpful.
from vex.
I'm having the same issue.
from vex.
I think this is related to #141, and the fix could be to change "vex" to "vex-js" in the array of define
dependencies as has been suggested on that issue: #141 (comment)
It worked for me, my define
implementation is provided by webpack.
from vex.
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.
from vex.
Assuming this worked fine :)
from vex.
Related Issues (20)
- HTML entities in unsafeMessage/unsafeContent
- is it possible to open vex over a canvas ?
- Help moving vex and using append location
- vex-open remains on body in chrome if dialog is closed in background with child browser window & print dialog is called (then print cancelled or proceed) HOT 1
- vex input field sanitizes spaces
- Multiple Buttons?
- problem with the modal position and size HOT 1
- how to use it in Vue? HOT 2
- readme spelling error
- file input inside vex.open() HOT 1
- Dynamic select using AngularJS with ng-options
- vex.close could cover submission
- demos in documentation don't work
- button click opens and closes dialog at the same time HOT 2
- Can Vex Modal lock? HOT 1
- Unsafe assignment to innerHTML
- Animations required for close
- Make buttons respond to Enter and Esc keys
- Refresh buttons of a dialog confirm HOT 1
- vex dialog buttons are not working as expected. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vex.