TypeError: Cannot read property 'forEach' of undefined

Did you edit settings.js? If so, check to see if you missed a comma or a bracket.
If you can't find an error and haven't added anything that could comprimize your security, you could edit the file and copy it and paste it 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