Hello community,
I continue working in the development of custom widgets for Experience Builder and I would like to have some help with a problem that came up.
Basically, the custom widget will ask three different layers from a map widget on ExB App within Portal 11.1 to perform later some different actions. In the 'Setting' code, a Map Widget Selector is used to define the map source from which the layers will be taken. Meanwhile, into the 'Widget' code the JimuMapViewComponent is implemented to pass the selected Jimu Map View and perform a query selection of the features that intersect the map view extent.
The problem shows-up just when I deployed the widget into my ExB App into my Portal and it shows the message that can be seen in Image 1. But when I am working with the builder (development environment) this problem does not show-up and the query action is performed successfully.

Image 1. Error showed by ExB App on Portal.
Attached to this message please find the 'Settings' and 'Widget' scripts. I hope someone can help me or recommend me some sources where I can have a better understanding of this problem. I have searched the solution but I did not have luck with it.
I am working with Experience Builder Developer 1.14 and publish the custom widget into ArcGIS Portal in Enterprise 11.1.
Thanks in advance!
Diego