My code is pretty simple for adding the FeatureLayer, this code is within a function. We than add the layer to the map immediately after:
const layer = new esri.FeatureLayer(
{
id: labelData.layerId + '-' + sublayer.id,
url: url + '/' + sublayer.id,
title: labelData.labelName,
legendEnabled: false,
visible: labelData.visible,
// definitionExpression: defExp,
// labelingInfo: this.createLabelClass(labelData, sublayer.attributes),
// renderer: {
// type: 'simple',
// symbol: this.getSymbol(labelData.geometryType)
// }
}
);
return layer;
Again, I get absolutely no console errors or messages. This screenshot is from 4.16:
And this is 4.17:
The code is exactly the same and has always worked until 4.17.