cancel
Showing results for 
Search instead for 
Did you mean: 

What would cause "cb() never called!" error attempting to run node.js module?

0 Kudos
771

Thank you in advanced for your time looking at this question.

The environment is HXE 2 SPS03.

The objective is to attach the Debugger to a node.js module within Web IDE.

When the XSA app's package.json file has the node engine set as "6.x" the application runs.

Though, when attempting to attach the Debugger, a message appears -> ("Debugging unavailable: Debugging not supported with Node.js < 8.1.0. Please consider upgrading engine in package.json").

Then, changing the package.json file's node engine entry from "6.x" to " ^8 " (as in the openSAP tutorial) and trying to run the node.js module causes an error.

The attached log file shows the error message. The package.json file has also been attached.

Please let me know if more information is necessary that'll help.

Thank you for your thoughts on this issue.

2018-06-25t15-51-46-763z-debuglog.txt packagejson.txt

View Entire Topic
0 Kudos

Hi,

adding "engines": { "node": "0.8.x" } to my package.json fixed that error for me.

Thanks,

Iván

0 Kudos

Iván,

First, thank you for your time to respond.

I just tried the suggestion. When attempting to run the node.js module with the package.json modified with node as "0.8.x" a message appears: "Application failed to run. Check Logs for more details".

The builder log only shows:

[INFO] Injecting source code into builder...
[INFO] Source code injection finished
[INFO] ------------------------------------------------------------------------

It seems there is something else that I need to set.

Thanks again for your time,

John

0 Kudos

Success!

On a hunch I reinstalled (sudo ./hxe_upgrade.sh) the upgrade (from SPS02 to SPS03). And, tried to run the node.js module in the app - setting "0.8.x" as the node engine produced an error again - though, setting the node engine to " ^8 " worked. And, I was able to attach the Debugger and debug some xsjs code.

Thanks!!!