Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI5 inspector causes warnings in browser console #268

Open
mdreier-sap opened this issue Aug 20, 2024 · 2 comments
Open

UI5 inspector causes warnings in browser console #268

mdreier-sap opened this issue Aug 20, 2024 · 2 comments

Comments

@mdreier-sap
Copy link

When using the UI5 inspector with current UI5 releases, it raises a number of warnings in the browser console because it uses deprecated APIs. Since these look the same as warnings raised from the running app, it distracts when trying to identify issues with the application. Observed call stacks with SAPUI5 1.126.1:

[Deprecated] UriParameters.mParams must not be accessed. -  
log @ Log.js?eval:498
Log.warning @ Log.js?eval:270
get @ UriParameters.js?eval:186
_getFrameworkInformation @ ToolsAPI.js:141
mutation._observer @ main.js:41
Do not use deprecated function 'sap.ui.getVersionInfo' synchronously! Use 'sap/ui/VersionInfo' module's asynchronous .load function instead - Deprecation 
log @ Log.js?eval:498
Log.warning @ Log.js?eval:270
sap.ui.getVersionInfo @ Global.js?eval:113
_getFrameworkInformation @ ToolsAPI.js:105
mutation._observer @ main.js:41
@PetyaMarkovaBogdanova
Copy link
Contributor

Hi @mdreier-sap,
since we recently released a new version, can I please ask you to retest and confirm the issue still persists?
Thank you!

Best regards,
Petya Markova.

@mdreier-sap
Copy link
Author

mdreier-sap commented Jan 8, 2025

There is still a lot of errors coming up on 1.131.0 (if that is the latest one). I quickly checked through them, and it seems that they are all of the format

Importing the pseudo module '[module name]' is deprecated. To access the type '[type name]', please import '[library name]/library' to ensure that the type is defined. You can then access it by calling 'DataType.getType("[type name]")'. For more information, see documentation under 'Best Practices for Loading Modules'.

The call stack is the same as well, coming from sap.ui.core.support.plugins.Breakpoint methods:

  • sap.ui.require()
  • getClassObject()
  • findDeclaredClasses()
  • Breakpoint.getClasses()
  • Breakpoint.requestClasses()
  • Breakpoint.init()

How to check for yourself:

  1. Go to https://sapui5.hana.ondemand.com/sdk/ or https://openui5.hana.ondemand.com/
  2. Open browser console
  3. Press Ctrl+Alt+Shift+S

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants