The current Plejd add-on (v0.18.0) continuously restarts with a SyntaxError: Unexpected token '=' because the container uses Node.js v12.22.12, which does not support modern ECMAScript 2021 syntax (specifically the logical-OR assignment operator ||=).
The offending code is located in the dependency @so-ric/colorspace at:
/plejd/node_modules/@so-ric/colorspace/dist/index.cjs.js:1976
(limiters[m] ||= [])[channel] = modifier;
Node 12 cannot parse ||= and immediately throws a syntax error, which causes the add-on to crash and the HA Supervisor to restart it in a loop.
Reproduction steps:
1. Clean Home Assistant OS 16.2 installation.
2. Add Plejd repository (https://github.com/icanos/hassio-plejd) via Add-on Store.
3. Install Plejd v0.18.0 (latest release).
4. Start the add-on.
5. Observe repeating crash logs:
SyntaxError: Unexpected token '='
at /plejd/node_modules/@so-ric/colorspace/dist/index.cjs.js:1976
c011d2e6_plejd_2025-10-15T21-00-59.190Z.log
The current Plejd add-on (v0.18.0) continuously restarts with a SyntaxError: Unexpected token '=' because the container uses Node.js v12.22.12, which does not support modern ECMAScript 2021 syntax (specifically the logical-OR assignment operator ||=).
The offending code is located in the dependency @so-ric/colorspace at:
/plejd/node_modules/@so-ric/colorspace/dist/index.cjs.js:1976
(limiters[m] ||= [])[channel] = modifier;
Node 12 cannot parse ||= and immediately throws a syntax error, which causes the add-on to crash and the HA Supervisor to restart it in a loop.
Reproduction steps:
1. Clean Home Assistant OS 16.2 installation.
2. Add Plejd repository (https://github.com/icanos/hassio-plejd) via Add-on Store.
3. Install Plejd v0.18.0 (latest release).
4. Start the add-on.
5. Observe repeating crash logs:
SyntaxError: Unexpected token '='
at /plejd/node_modules/@so-ric/colorspace/dist/index.cjs.js:1976
c011d2e6_plejd_2025-10-15T21-00-59.190Z.log