Missing autofix for methods jQuery.sap.registerModulePath/registerResourcePath
Open
@flovogt is already working on this.
Since Aug 11, 2026.
autofix
- Dominant language
- TypeScript
- Stars
- 79
- Forks
- 13
- Avg merge
- 19h 34m
- Merged PRs (30d)
- 9
Description
Missing autofix for methods jQuery.sap.registerModulePath/registerResourcePath
Methods jQuery.sap.registerModulePath/registerResourcePath are deprecated. Therefore an autofix should be offered by UI5 linter.
Deprecated APIs:
- jQuery.sap.registerModulePath
- jQuery.sap.registerResourcePath
Deprecated Usage
jQuery.sap.registerModulePath("ui5.project.moduleA", "/ui5/project/moduleA");
jQuery.sap.registerModulePath("ui5.project.moduleB", { path: "/ui5/project/moduleB"});
jQuery.sap.registerResourcePath("me/fancy/A", "ui5/projectA/");
jQuery.sap.registerResourcePath("me/fancy/B", { url: "ui5/projectB/"});
Recommended Usage
sap.ui.define([
], () => {
"use strict";
sap.ui.loader.config({paths:{"ui5/project/moduleA": "/ui5/project/moduleA"}});
sap.ui.loader.config({paths:{"ui5/project/moduleB": "/ui5/project/moduleB"}});
sap.ui.loader.config({paths:{"me/fancy/A": "ui5/projectA"}});
sap.ui.loader.config({paths:{"me/fancy/B": "ui5/projectB"}});
});
Note: Apps Used Within the SAP Fiori launchpad, should register local UI5 reuse components and UI5 libraries in the manifest.json under sap.ui5/componentUsages and sap.ui5/dependencies/libs, respectively.
Apps designed for a standalone deployment, can define module and resource path mapping in the bootstrap attribute data-sap-ui-resource-roots in the respective HTML file.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.