Closed DetachHead closed 3 months ago
@aschmalzhaf can you please take a look and comment? Did only the global name disappear and it's possible now to access sap.ushell.Container
via a module export in UI5 1.100?
The issue should be fixed with newer UI5 versions (1.102++ should work fine). Please excuse all inconveniences.
Hold on... I don't think so.
It appears as a class at https://ui5.sap.com/1.101.0/#/api/sap.ushell.Container, but loaded from module "sap/ushell/Container". In 1.99 it used to be a field on the namespace (https://ui5.sap.com/1.99.0/#/api/sap.ushell), which it isn't anymore.
So it's sort of back again after disappearing in 1.100, but not like it used to be. A question to @DetachHead would be whether it would be acceptable to import it from module "sap/ushell/Container" instead of addressing it as a global - and whether this works at all, giving access to the singleton instance.
Edit: a quick test seems to show that the class is imported, not the singleton instance.
Now internally tracked as 2280149651 to get it handled.
Seems like this problem has been fixed in SAPUI5 version 1.121 and later. Possible downport to 1.120 is being discussed.
I verified that the following can be written in TypeScript and also works at runtime to the extent expected:
import Container from "sap/ushell/Container";
const navService = await Container.getServiceAsync("Navigation");
("extent expected" means it fails to return a value in a standalone app without FLP, but getServiceAsync
is properly called on the right object.)
Closing as finally fixed.
the
sap.ushell.Container
const that was defined insap.ushell.d.ts
seems to no longer be present in version 1.100. how come it was removed?