I'd like to use the Require.js Sugar Syntax for loading JSAPI modules, i.e.:
define(<SPAN class="function"><SPAN class="keyword" style="font-weight: bold; color: #006699;">function</SPAN> <SPAN class="params">(require)</SPAN> {</SPAN><BR /> <SPAN class="keyword" style="font-weight: bold; color: #006699;">var</SPAN> map= require(<SPAN class="string" style="color: #cc3300;">'esri/map'</SPAN>),<BR /><BR /> <SPAN style="color: #006699;"><STRONG>//do something with map</STRONG></SPAN><BR /><SPAN style="color: #333333;">});</SPAN>
but when I try to instantiate a new Map object, an error is thrown that says "undefinedModule".
How can we make this work?
Message was edited by: Brian Behling