4

Can anybody provide me with a simple example of how to use requirejs to load dojo modules?

The requirejs.org website indicates it is best to use the dojo loader until a ticket is resolved - but that ticket appears to be resolved and is now closed.

I am encountering errors such as described here (duplicated below) only now with dojo 1.9.1.

Error:

TypeError: _3.add is not a function _3.add("dom-addeventlistener",!!document.addEventListener);

(I have an existing backbone app that uses requirejs and am simply trying to integrate in dojo charting).

Community
  • 1
  • 1
dwhogg
  • 188
  • 7

1 Answers1

8

You need to use the source/SDK version of the Dojo Toolkit. Built copies of AMD modules are not compatible between loaders.

C Snover
  • 17,908
  • 5
  • 29
  • 39
  • Confirmed this worked for me too. Though the link goes to 1.9 http://download.dojotoolkit.org/ for all downloads – James Dec 28 '15 at 20:23