Node red foreach error

start node-red with 'node-red --safe' and see if you startup with out a problem.

If you do, disable the node you were playing wth and deploy and see if that prevents the issue. That will at least narrow down the cause.

Also, could you attach your flow to a reply? In order to make code more readable and importable it is important to surround your code with three backticks

```like this```

You can edit and correct your post by clicking the pencil icon.

See this post for more details - How to share code or flow json