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

Unexpected token function, fail to loading plugin. #54

Open
huangbinapple opened this issue Jun 27, 2018 · 1 comment
Open

Unexpected token function, fail to loading plugin. #54

huangbinapple opened this issue Jun 27, 2018 · 1 comment

Comments

@huangbinapple
Copy link

my node version is v6.14.3

[6/28/2018, 2:49:56 AM] ====================
[6/28/2018, 2:49:56 AM] ERROR LOADING PLUGIN homebridge-mi-air-purifier:
[6/28/2018, 2:49:56 AM] /usr/lib/node_modules/homebridge-mi-air-purifier/index.js:296
    getLockPhysicalControls: async function(callback) {
                                   ^^^^^^^^

SyntaxError: Unexpected token function
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:549:28)
    at Object.Module._extensions..js (module.js:586:10)
    at Module.load (module.js:494:32)
    at tryModuleLoad (module.js:453:12)
    at Function.Module._load (module.js:445:3)
    at Module.require (module.js:504:17)
    at require (internal/module.js:20:19)
    at Plugin.load (/usr/lib/node_modules/homebridge/lib/plugin.js:72:22)
[6/28/2018, 2:49:56 AM] ====================

@Joeip12
Copy link

Joeip12 commented Nov 15, 2018

same problem here, please help.

screenshot 2018-11-15 at 5 58 26 pm

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