Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin crashes on load #20

Open
jsve opened this issue Oct 11, 2017 · 3 comments
Open

Plugin crashes on load #20

jsve opened this issue Oct 11, 2017 · 3 comments

Comments

@jsve
Copy link

jsve commented Oct 11, 2017

Oct 11 19:48:59 xxx yyy[816]: [10/11/2017, 7:48:59 PM] ERROR LOADING PLUGIN homebridge-ikea:
Oct 11 19:48:59 xxxx yyy[816]: [10/11/2017, 7:48:59 PM] /usr/local/lib/node_modules/homebridge-ikea/index.js:49
Oct 11 19:48:59 xxx yyy[816]: accessories: async function(callback) {
Oct 11 19:48:59 xxx yyy[816]: ^^^^^^^^
Oct 11 19:48:59 xxx yyy[816]: SyntaxError: Unexpected token function
Oct 11 19:48:59 xxx yyy[816]: at Object.exports.runInThisContext (vm.js:76:16)
Oct 11 19:48:59 xxx yyy[816]: at Module._compile (module.js:542:28)
Oct 11 19:48:59 xxx yyy[816]: at Object.Module._extensions..js (module.js:579:10)
Oct 11 19:48:59 xxx yyy[816]: at Module.load (module.js:487:32)
Oct 11 19:48:59 xxx yyy[816]: at tryModuleLoad (module.js:446:12)
Oct 11 19:48:59 xxx yyy[816]: at Function.Module._load (module.js:438:3)
Oct 11 19:48:59 xxx yyy[816]: at Module.require (module.js:497:17)
Oct 11 19:48:59 xxx yyy[816]: at require (internal/module.js:20:19)
Oct 11 19:48:59 xxx yyy[816]: at Plugin.load (/usr/local/lib/node_modules/homebridge/lib/plugin.js:65:22)
Oct 11 19:48:59 xxx yyy[816]: at Server. (/usr/local/lib/node_modules/homebridge/lib/server.js:132:14)

@stenehall
Copy link
Owner

What version of node are you running? It looks like it's the async that crashes. That would mean you're running a to old version of node.

@jsve
Copy link
Author

jsve commented Oct 14, 2017

I’m on v6.9.5

Is that considered outdated? Having no problem with other plugins and scripts.

@stenehall
Copy link
Owner

Async was introduced in v7 I think. The latest stable release is v8.7.0. While LTS is still on 6.11.4. But since I wanted fancy async/await (it makes for so much cleaner code) you'd sadly have to upgrade for it to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants