I am using Arcgis API for JS v4.13 to create a web application. I have a MapImageLayer created from a service url, which contains 4 sublayers:
I think there is a bug in Version 4.13 of the JSAPI. I am not using Arcade Expressions but I do get the same 'query-required-fields Could not query required fields for the specified layer. Some fields will not be available' warning in the console.
It seems to be related to using the "outFields: ['*']" property value pair on a MapImageLayer
The following codepen throws warnings in the console (click on a blue dot first), if you switch the script and stylesheet tags to point to JSAPI V 4.12 the warnings go away. The other way to get rid of the warning is to specify outFields explicitly rather than '*'