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.
adding
"engines": { "node": "0.8.x" }
to my
package.json
fixed that error for me.
Thanks,
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".
It seems there is something else that I need to set.
Thanks again for your time,
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.