I created logic by this example in my Angular 8 app:
Zoom to extent of all features | ArcGIS API for JavaScript 4.15

But in method the method goTo throws exception: Cannot read property 'targetGeometry' of null. I can't understand the reason of exception. I found some solution to move scene to point and it works:

But I would like to use view.goTo(response.extent) it is more native and clear.
One more thing: coordinates in sweref 99 format. Could it be a reason of the issue?