Skip to Content
0
Aug 21, 2018 at 10:24 AM

SAP Web IDE Builder node --trace-warnings

186 Views Last edit Aug 21, 2018 at 10:55 AM 2 rev

Hi Developers!

Is there a way to pass

--trace-warnings 

node option to SAP Web IDE default Builder?

I need to trace back a source for annoying deprecation warning like

[APP/6-0] ERR    (node:10149) [DEP0013] DeprecationWarning: Calling an asynchronous function without callback is deprecated.

and can't figure out how.

The source for this waring is an outdates code in App Router, that is fixed in ver. 5.3.0

Thank to Thomas Jung for the fix. You need to change default package.json to

"dependencies": {
"@sap/approuter": "5.3.0"
}

see https://answers.sap.com/questions/505598/sap-hana-sap-03-xsa-deprecationwarning-calling-an.html

But the tracing back question is still open as adding

"scripts": {"start": "node --trace-deprecation node_modules/@sap/approuter/approuter.js"} 
"scripts": {"start": "node --throw-deprecation node_modules/@sap/approuter/approuter.js"} 
"scripts": {"start": "node --trace-warnings node_modules/@sap/approuter/approuter.js"} 

all lead to the same application error:

Could not invoke application <Your app>. Check application logs for more details.