My problem is created by an ESRI JS API import.
Please, somebody from ESRI could explain how import JS API in a sub component. Not directly in the widget.
How create an utils file that uses the JS API ?
Thanks.
The problem had a problem because the JS API dependency was not in the manisfest.json of a widget.