cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Web IDE Builder node --trace-warnings

former_member540015
Participant
0 Kudos

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. 

Accepted Solutions (0)

Answers (0)