I have tried to add in a measuring widget to my application and cannot get it to work, unless I add in a basemap property to the map. There isn't much code. Here is the error I am getting in console mode:

My application code is attached. In the past, I used the same widget (at version 3.09 but did not have any issues).
Here is a brief snipped of the main application code:
// Map - Initial Extent
var initialExtent = new Extent(2097523, 220046, 2189056, 275030, new SpatialReference({wkid: 102724}));
map = new Map("map", {
});
| | |
| | var measurement = new Measurement({ |
map: map,
| | defaultAreaUnit: Units.SQUARE_FEET, |
| | defaultLengthUnit: Units.FEET |
}, dom.byId("measurementDiv"));
measurement.startup();
id: "Base Map",
visible: true
});
| | map.addLayers([baseMap]); |
Any ideas on what could be the issue? I am using the same geometry and services in other apps and they are working fine.
Thank you! Ian