Trying to add my custom basemap to my map like
var customBasemap = new TileLayer({
url:"https://utility.arcgis.com/.../MapServer"
});
map.add(customBasemap);
But I'm getting this error:
message: "The spatial reference of this layer does not meet the requirements of the view"
name: "layerview:spatial-reference-incompatible"
Is there any way around this error?