Hello,
I am trying to migrate a simple map from JS API 3x to 4x. My test is a simple basemap with one feature layer added from a MapService. I have created what I think is the equivalent code in both APIs but it seems to work in 3x but not 4x. Will someone please take a look at these two pens and see if I made and obvious mistake. They are short, I promise.
https://codepen.io/valcannon/pen/zYKEqdy
https://codepen.io/valcannon/pen/oNzGxov