Closed Shugabuga closed 7 years ago
Thanks for the report. Which version of nodejs are you running?
Want to try making the fix and see if it works? Happy to accept a PR.
After installing your plugin I ran exactly into the above mentioned error.
Running homebridge on a Raspberry Pi 2 Model B with Jessie.
npm -v
returns 5.3.0
node -v
returns 4.2.1
I have no experience with Linux, so please be patient with me :)
@LANtastic, thanks for the report. I think the issue is with another package I made to support this plugin called cec-promise
.
If you're comfortable editing a text file, you can edit the file /usr/local/lib/node_modules/cec-promise/index.js
, and add a new line at the very top that says "use strict";
If you'd rather wait, I'll make the change this evening when I get home from work and publish it.
Version 0.1.1 should take care of this issue. Please confirm.
Sorry for late reply ! After updating the issue is solved and your plugin works like a charm :) THANKS !
Great! Take care
Whenever HomeBridge is run the following error is thrown towards this plugin:
Partial:
Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
Full:
Possible fix: Force
strict
mode?