UI5 Inspector no longer working in SAPUI5 v1.38. Error control.getMetadata(...).getProperty(...).getDefaultValue is not a function
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 150
- Forks
- 59
- Avg merge
- 6d 22h
- Merged PRs (30d)
- 2
Description
In recent updates in SAPUI5 v1.38 is no longer possible to use UI5 Inspector. The error received in the console is the following : ToolsAPI.js:264 Uncaught TypeError: control.getMetadata(...).getProperty(...).getDefaultValue is not a function.
In toolsAPI.js at line 264, is where the issue is identified :
result.properties[key].isDefault = control.getMetadata().getProperty(key).getDefaultValue() === control.getProperty(key);
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.
Research direction
Start at toolsAPI.js line 264 and reproduce the failure with an OpenUI5 or SAPUI5 v1.38 application. Check the metadata property API involved in the getDefaultValue call; done means the UI5 Inspector works without this TypeError and correctly evaluates the property state.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100