Skip to Content

SAP Web IDE Builder node --trace-warnings

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. 
Add a comment
10|10000 characters needed characters exceeded

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.