Optional chaining, nullish coalescing operators in function node


I try to use optional chaining operator in 'function' node, but I get "The workspace contains some nodes that are not properly configured" error. Node.js version is 14.x, so it should be supported. Am I missing something?

Can you share an example of the exact syntax you are trying to use?

Does the Function node show any errors?

What version of Node-RED are you using?

I am using 1.2.2, official Docker image.

We don't produce Node 14 docker images (yet). If you're using the docker image we provide then you'll be on Node 10 or 12 which doesn't support the nullish operator.

What to do.. Thank you very much.

If you used a non-docker install then you could use nodejs 14.
Thanks for posting this by the way, I was not aware of this new feature in js, it will be useful.

[Edit] Or build your own docker image I suppose, if you have the knowledge to do that.

I can build an image of course, if Node 14 is fully supported of course.

node-red certainly works with node 14, that is what I use on at least one of my systems. Which is not to say that all contrib nodes will necessarily work. The only way to know is to try any that you use.

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