Detect and fix missing library dependencies in UI5 YAML

Open
#1,139 1 comment 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@flovogt is already working on this.

Since Sep 24, 2026.

Assessment

This issue has not been assessed yet.

Description

autofix detection

Detect if a module e.g. a control of a library is used in an OpenUI5 / SAPUI5 project (XML, JS) but the respective OpenUI5 / SAPUI5 library was not added to the framework/libraries list in the UI5 YAML files.

Furthermore, a autofix should be provided for this scenario.

Scenario

The sap.m library is used in a XMLView but the ui5.yaml does not mention sap.m in the framework/libraries section.

<mvc:View xmlns:mvc="sap.ui.core.mvc" xmlns:core="sap.ui.core" xmlns="sap.m" controllerName="ui5app.controller.Home" >
  <Text text="Hello"/>
</mvc:View>

Before Autofix

framework: 
  name: OpenUI5
  version: "1.151.0"
  libraries: 
    - name: sap.ui.core
    - name: themelib_sap_horizon

After Autofix

framework: 
  name: OpenUI5
  version: "1.151.0"
  libraries: 
    - name: sap.m
    - name: sap.ui.core
    - name: themelib_sap_horizon
Dominant language
TypeScript
Stars
82
Forks
14
Avg merge
10h 17m
Merged PRs (30d)
13

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from UI5/linter

All issues in UI5/linter

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.