Skip to Content
Oct 28, 2021 at 03:03 PM

Business Application Studio underlines syntactically correct code

418 Views Last edit Oct 29, 2021 at 07:39 AM 2 rev

SAP Business Application Studio keeps underlining certain parts of code that work completely fine.


var btAddParent = new sap.m.Button({

id: "btAddParent",

activeIcon: "sap-icon://add-coursebook",

icon: "sap-icon://add-coursebook",

tooltip: "Add parent"


var btAddParent = new sap.m.Button({id: "btAddParent",activeIcon: "sap-icon://add-coursebook",icon: "sap-icon://add-coursebook",tooltip: "Add parent"});

Argument of type '{ id: string; acitveIcon: string; icon: string; tooltip: string; }' is not assignable to parameter of type 'string'. ts(2345)

This code works just fine, so there is no reason why it should be underlined. Is there any way to remove the underlines?