"flow" variable predefined?

I have an obscure question: I just upgraded to the newest node-red, and one of my javascript nodes has a compile error where it says in my own code that "var flow" is already defined.

Has something changed such that "flow" is a reserved function/method?

It says:

Duplicate identifier 'flow'.(2300)
var flow: any

thanks

In Node-RED, the flow context variable is used to access variables that are scoped to the current flow. You do not use flow.path, instead, you use flow.get('variableName') to retrieve a value and flow.set('variableName', value) to store it.

As you have probably updated from a version of node-red that used Ace as the editor to Monaco, Node-red now has better error reporting.

Quick fix remove var.
Best fix use get() and set() , and do not use flow, global and context as variable names.