Code Monkey home page Code Monkey logo

Comments (7)

bbatliner avatar bbatliner commented on June 26, 2024 1

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.

neilkyoung avatar neilkyoung commented on June 26, 2024

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.

timmfin avatar timmfin commented on June 26, 2024

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.

dianafaye17 avatar dianafaye17 commented on June 26, 2024

I'm having the same issue.

from vex.

ferhtgoldaraz avatar ferhtgoldaraz commented on June 26, 2024

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.

markstos avatar markstos commented on June 26, 2024

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.

bbatliner avatar bbatliner commented on June 26, 2024

Assuming this worked fine :)

from vex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.