For coordinate systems other than web mercator or lat/long, it requires a geometry service. This is not a problem if the map is under web mercator or lat/long in which geometry service is not needed anyways. Please include a geometry service in your application by:
esriConfig.defaults.geometryService = new GeometryService("http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer");