node-red-node-test-helper icon indicating copy to clipboard operation
node-red-node-test-helper copied to clipboard

RED.require() function not supported in node-red-node-test-helper

Open Landry25 opened this issue 6 years ago • 1 comments

Dear all, I'm trying to load a node based on new node-red dashboard api addWidget but i have an error when loading TypeError: RED.require is not a function in my node I have the following code : ui = RED.require("node-red-dashboard")(RED); seems that require is not available in the object RED but I use the version 0.19.5 which is working outside of the test env.

Thank you for your help.

Landry25 avatar Jan 28 '19 08:01 Landry25

yes you cannot test that, I cannot imagine a scenario to use this. only isolated nodes. Or very very simple and dummy nodes. I also tried a lot of things but it seems that RED instance is not loading any additional nodes.

SergiuToporjinschi avatar Feb 10 '21 22:02 SergiuToporjinschi