Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Landry25 opened this issue Jan 28, 2019 · 1 comment
Open

Comments

@Landry25
Copy link

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.

@SergiuToporjinschi
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants