Any way to avoid false errors at design time?

I’m running into consistent design-time (pre-execution) error messages in code nodes that end up running just fine. Here’s an example: I have a node called “Populate Search Names” (runs once for all items, outputs 5 items) and I have a later code node with the following line:

image

I get the red squiggly under the all() method and when I mouse-over, I see the error:

image

But when I Execute the node, it runs past that statement and searchNames has the items from that node populated, so the code executes without error. Is this just a code interpreter bug? Or should I not consider red squiggly as an error?

This is Typescript type-checking enabled inside the node. It’s for diagnostics as n8n is written in Typescript. You can safely ignore them and as far as I know there isn’t a way to disable them, unless you want to hack it while hosting locally.

Feel free to mark this as Solution if it helps, and cheers :oncoming_fist:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.