AnsweredAssumed Answered

How to use require js Sugar Syntax with ESRI JSAPI

Question asked by bbehling on Aug 24, 2015
Latest reply on Aug 24, 2015 by odoe

I'd like to use the Require.js Sugar Syntax for loading JSAPI modules, i.e.:


define(function (require) {
   var map= require('esri/map'),

//do something with map



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