raymondelooff / homebridge-huejay

Homebridge Plugin for Philips Hue accessories based on Huejay
GNU General Public License v3.0
11 stars 1 forks source link

Not working anymore after update from 1.0.1 to 1.1.1 #3

Closed mrbeach69 closed 7 years ago

mrbeach69 commented 7 years ago

Hello,

the plugin is not working anymore after the update from 1.0.1 to the newest version 1.1.1. Also a reinstall makes no different.

img_6517

raymondelooff commented 7 years ago

Could you please submit the log file from Homebridge, so I can see the exception you are getting?

mrbeach69 commented 7 years ago

This is the logfile:

[2017-05-05 18:25:36] ==================== [2017-05-05 18:25:36] ERROR LOADING PLUGIN homebridge-huejay: [2017-05-05 18:25:36] SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:373:25) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object. (/usr/local/lib/node_modules/homebridge-huejay/lib/HueAccessory/Factory.js:3:18) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object. (/usr/local/lib/node_modules/homebridge-huejay/lib/HuePlatform.js:14:26) at Module._compile (module.js:409:26) [2017-05-05 18:25:36] ====================

raymondelooff commented 7 years ago

Thank you, what version of Node.js are you running?

mrbeach69 commented 7 years ago

v4.3.2

raymondelooff commented 7 years ago

Please upgrade to a more recent version of Node.js. I recommend you to use the latest version of Node.js that's currently available: v7.10.0. Version 6.10.3 will work as well. Version 4 doesn't support the newer JS syntax I'm using.