AnsweredAssumed Answered

javascript API 4.6 - Error not throwing up in mapView promise callback

Question asked by DemersM on Jan 26, 2018
Latest reply on Jan 26, 2018 by DemersM

I notice that error that are thrown in the mapView constructor callback are not displayed in the browser console.


For instance:


var view = new MapView({
    "container": "viewDiv",
    "map": map,
    "zoom": 7
}).when(function(view) {   
    throw new Error("This error is not displayed in the browser console");   
    alert("This alert is not executed");
}, function(error) {   


This is really difficult to know where the code is breaking. Is there a solution for this?