Im trying to swap 2d - 3d
im getting error message on createView Line
error message is "mapView is undefined" and init.js is giving this error message
// create 2D view and and set active
appConfig.mapView = createView(initialViewParams, "2d");
appConfig.activeView = appConfig.mapView;
Why im getting this error message?