cancel
Showing results for 
Search instead for 
Did you mean: 

Business Application Studio underlines syntactically correct code

0 Kudos

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

E.g:

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?

yuval_morad
Employee
Employee
0 Kudos

please share your package.json and a picture of the error

0 Kudos
yuval.morad { "_from": "@sap/ux-ui5-tooling@1", "_id": "@sap/ux-ui5-tooling@1.3.5", "_inBundle": false, "_integrity": "sha512-DGFn3G+OJgIFBmAqCEsrk1jIyLy0Crdv5tlF7NnYwVoNxFFoktQP1thHuFD7GFmlWVB7GYH9SznWD7eFivzsKA==", "_location": "/@sap/ux-ui5-tooling", "_phantomChildren": {}, "_requested": { "type": "range", "registry": true, "raw": "@sap/ux-ui5-tooling@1", "name": "@sap/ux-ui5-tooling", "escapedName": "@sap%2fux-ui5-tooling", "scope": "@sap", "rawSpec": "1", "saveSpec": null, "fetchSpec": "1" }, "_requiredBy": [ "#DEV:/" ], "_resolved": "http://nginx-redirector.repo-cache.svc.cluster.local/repository/appstudio-npm-group/@sap/ux-ui5-tooling/-/ux-ui5-tooling-1.3.5.tgz", "_shasum": "374aa79af4eaa5aec7e3b011f226e97935f5ff39", "_spec": "@sap/ux-ui5-tooling@1", "_where": "/home/user/projects/ActivitySamplerServiceBAS-master/ActivitySamplerServiceBAS-master/ActivitySamplerServiceUI5", "bin": { "fiori": "bin/fiori" }, "bundleDependencies": false, "dependencies": { "@ui5/fs": "^2.0.6", "async-retry": "1.3.1", "express": "4.17.1", "keytar": "7.7.0", "livereload": "0.9.1", "lodash": "4.17.21", "update-notifier-webpack": "5.0.1" }, "deprecated": false, "description": "SAP Fiori tools – UI5 Tooling", "devDependencies": { "@sap/ux-app-templates": "1.3.5", "@sap/ux-cds": "1.3.5", "@sap/ux-control-property-editor": "1.3.5", "@sap/ux-odata-client": "1.3.5", "@sap/ux-telemetry": "1.3.5", "@types/body-parser": "1.19.0", "@types/prompts": "2.0.8", "@types/yazl": "2.4.2", "@ui5/cli": "^2.11.1", "@ui5/logger": "2.0.1", "@ui5/project": "2.4.0", "@ui5/server": "2.2.10", "axios": "0.21.1", "body-parser": "1.19.0", "chalk": "4.1.0", "connect-livereload": "0.6.1", "dotenv": "8.2.0", "ejs": "3.1.6", "hasbin": "1.2.3", "http-proxy-agent": "4.0.1", "http-proxy-middleware": "1.3.1", "https-proxy-agent": "4.0.0", "i18next": "19.0.2", "marked": "3.0.2", "marked-terminal": "4.2.0", "mock-http-server": "1.4.2", "open": "7.0.3", "portfinder": "1.0.25", "prompts": "2.3.0", "serve-static": "1.14.1", "typescript": "3.8.3", "wait-for-expect": "3.0.2", "yaml": "1.9.2", "yargs-parser": "20.2.6", "yazl": "2.5.1" }, "displayName": "SAP Fiori tools – UI5 Tooling", "eslint-formatter-multiple": { "formatters": [ { "name": "stylish", "output": "console" }, { "name": "json", "output": "file", "path": "reports/lint/eslint.json" }, { "name": "checkstyle", "output": "file", "path": "reports/lint/eslint.checkstyle.xml" } ] }, "files": [ "bin", "dist", "doc", "README.md", "package.json", "ui5.yaml" ], "jestSonar": { "reportPath": "reports/test/unit", "reportFile": "test-report.xml" }, "license": "SEE LICENSE IN LICENSE", "name": "@sap/ux-ui5-tooling", "optionalDependencies": { "keytar": "7.7.0" }, "private": false, "publisher": "SAPSE", "scripts": { "build": "npm-run-all clean compile", "build:deps": "yarn lerna run --concurrency 1 --no-bail --stream --scope @sap/ux-telemetry --scope @sap/ux-odata-client --scope @sap/ux-common-utils --scope @sap/ux-store --scope @sap/ux-app-templates build", "bundle": "yarn build:deps && yarn build && npm pack", "clean": "rimraf ./dist", "clean:webpack_cache": "rimraf .webpack_cache", "compile": "webpack --color --config webpack.prod.js", "format:fix": "prettier --write --loglevel silent --ignore-path ../../../.prettierignore", "format:fix:all": "prettier --write '**/*.{css,scss,html,js,json,ts,tsx,yaml,yml}' '!**/{out,dist,typings,node_modules}/**' '!**/*.{svg,png,xml}' --ignore-path ../../../.prettierignore", "lint": "eslint . --ext .ts,.tsx", "lint:fix": "eslint --fix", "lint:fix:all": "eslint . --ext .ts,.tsx --fix", "lint:report": "eslint . --ext .ts,.tsx -f multiple --report-unused-disable-directives", "lint:summary": "eslint . --ext .ts,.tsx -f summary", "madge": "madge --warning --circular --extensions ts ./", "test": "jest --maxWorkers=1 --ci --forceExit --detectOpenHandles --colors --silent", "test:sequence": "node -r ts-node/register test/test-project/request-sequence.ts", "tgz:package": "npm pack", "watch": "yarn clean && webpack --color --config webpack.dev.js" }, "ui5": { "dependencies": [] }, "version": "1.3.5"}

Accepted Solutions (0)

Answers (0)