@ui5/project/ui5Framework/AbstractResolver
@ui5/project/ui5Framework/AbstractResolver
Abstract Resolver
Methods
Description: Installs the provided libraries and their dependencies
js
const resolver = new Sapui5Resolver({version: "1.76.0"});
// Or for OpenUI5:
// const resolver = new Openui5Resolver({version: "1.76.0"});
resolver.install(["sap.ui.core", "sap.m"]).then(({libraryMetadata}) => {
// Installation done
}).catch((err) => {
// Handle installation errors
});Source: project/lib/ui5Framework/AbstractResolver.js, line 193
Parameters:
| Name | Type | Description |
|---|---|---|
libraryNames | Array<string> | List of library names to be installed |
Returns:
Resolves with an object containing the libraryMetadata
Type: @ui5/project/ui5Framework/AbstractResolver~ResolverInstallResult
Type Definitions
LibraryMetadataEntry
Description: Library metadata entry
js
const libraryMetadataEntry = {
"id": "@openui5/sap.ui.core",
"version": "1.75.0",
"path": "~/.ui5/framework/packages/@openui5/sap.ui.core/1.75.0",
"dependencies": [],
"optionalDependencies": []
};Source: project/lib/ui5Framework/AbstractResolver.js, line 129
Properties:
| Name | Type | Description |
|---|---|---|
id | string | Identifier |
version | string | Version |
path | string | Path |
dependencies | Array<string> | List of dependency ids |
optionalDependencies | Array<string> | List of optional dependency ids |
Library metadata entry
js
const libraryMetadataEntry = {
"id": "@openui5/sap.ui.core",
"version": "1.75.0",
"path": "~/.ui5/framework/packages/@openui5/sap.ui.core/1.75.0",
"dependencies": [],
"optionalDependencies": []
};Type:
- object
ResolverInstallResult
Description: Install result
js
const resolverInstallResult = {
"libraryMetadata": {
"sap.ui.core": {
// ...
},
"sap.m": {
// ...
}
}
};Source: project/lib/ui5Framework/AbstractResolver.js, line 151
Properties:
| Name | Type | Description |
|---|---|---|
libraryMetadata | object<string, @ui5/project/ui5Framework/AbstractResolver~LibraryMetadataEntry> | Object containing all installed libraries with library name as key |
Install result
js
const resolverInstallResult = {
"libraryMetadata": {
"sap.ui.core": {
// ...
},
"sap.m": {
// ...
}
}
};Type:
- object

