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 socket.io error log file its show syntax error
/frappe-bench/apps/frappe/socketio.js:306

            args?.callback(err, res);

then I removed ternary ? operator it will work fine.

Thanks
Jecintha

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.

Same issue here

same issue

This Issue solved in Frappe Framework: v14.18.1 (version-14)

So please update your frappe version