Bench restart frappe-bench-web:frappe-bench-node-socketio: ERROR (spawn error)

Frappe version ( v14.16.0)
I faced error when restarting bench. when I debug the error log file its show syntax error

            args?.callback(err, res);

then I removed ternary ? operator it will work fine.


Same here

You can remove ‘?’ operator and run bench build it will be working

The minimum required node version is node14 since v13.

You seem to be using old version of node which doesn’t have support for optional chaining. You should upgrade node instead of editing code cause many other things are potentially silently breaking.

1 Like

My Node Version is 16 and still same issue.