michbeck100 / pimatic-hap

Pimatic homekit bridge
GNU General Public License v2.0
30 stars 10 forks source link

[pimatic] error: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode #94

Closed nona00 closed 3 years ago

nona00 commented 3 years ago

after upgrading "pimatic-hap" from 0.11.1 to 0.13.0 i get the following error at startup:

02:20:05.769 2021-06-11 Friday 02:20:11.196 [pimatic] info: Starting pimatic version 0.9.54 02:20:11.206 [pimatic] info: Node.js version 4.6.2 02:20:11.209 [pimatic] info: OpenSSL version 1.0.2j 02:20:13.365 [pimatic, ppm] info: 2.15.12 02:20:13.403 [pimatic] info: Loading plugin: "pimatic-cron" (0.8.8) 02:20:13.874 [pimatic] info: Loading plugin: "pimatic-mobile-frontend" (0.9.16) 02:20:14.599 [pimatic] info: Loading plugin: "pimatic-homeduino" (0.9.18) 02:20:15.284 [pimatic] info: Loading plugin: "pimatic-shell-execute" (0.9.11) 02:20:15.319 [pimatic] info: Loading plugin: "pimatic-milight-reloaded" (0.9.18) 02:20:15.624 [pimatic] info: Loading plugin: "pimatic-hap" (0.13.0) 02:20:15.837 [pimatic] error: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

and the plugin seems not to be registered.

michbeck100 commented 3 years ago

pimatic-hap needs at least Node.js 6 or higher.