Using requirejs with dojo 1.9.1

不问归期 提交于 2019-12-07 07:51:45

问题


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).


回答1:


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



来源:https://stackoverflow.com/questions/17475515/using-requirejs-with-dojo-1-9-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!