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

timers in Function node show an error (Node-RED: 3.1.0-beta.2 - MONACO 0.36.1) #4102

Closed
unborn-andy opened this issue Mar 13, 2023 · 0 comments · Fixed by #4103
Closed

timers in Function node show an error (Node-RED: 3.1.0-beta.2 - MONACO 0.36.1) #4102

unborn-andy opened this issue Mar 13, 2023 · 0 comments · Fixed by #4103
Assignees
Milestone

Comments

@unborn-andy
Copy link

unborn-andy commented Mar 13, 2023

Current Behavior

having a setInverval or setTimeout in a Function node with Node-RED: 3.1.0-beta.2 ( MONACO 0.36.1 ) shows an error ..
but the code works.

image

not that anybody would need a timer in a Function node but
I just thought of mentioning it in case it needs investigating before the next NR release

Expected Behavior

Monaco to correctly recognize timers ?

Steps To Reproduce

No response

Example flow

[{"id":"db9240c74e9204c8","type":"function","z":"54efb553244c241f","name":"function 2","func":"let times = setInterval(function() {\n    node.warn(\"test\")\n}, 5000);\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":400,"y":2840,"wires":[["cc159d996eed0bcc"]]}]

Environment

  • Node-RED version: 3.1.0-beta.2
  • Node.js version: v16.17.0
  • npm version: 8.8.0
  • Platform/OS: Win11
  • Browser: Firefox 110
@Steve-Mcl Steve-Mcl self-assigned this Mar 13, 2023
@Steve-Mcl Steve-Mcl added this to the 3.1 milestone Mar 13, 2023
@Steve-Mcl Steve-Mcl linked a pull request Mar 13, 2023 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants