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

Can't get plugin to run #2

Closed
brianjw opened this issue Apr 3, 2021 · 2 comments
Closed

Can't get plugin to run #2

brianjw opened this issue Apr 3, 2021 · 2 comments

Comments

@brianjw
Copy link

brianjw commented Apr 3, 2021

This is what I am getting in my log. Also attempted uninstalling and installing again. I am running the latest version of Homebridge (1.3.4).

[4/3/2021, 7:34:10 PM] ====================
[4/3/2021, 7:34:10 PM] ERROR LOADING PLUGIN homebridge-teslafi:
[4/3/2021, 7:34:10 PM] /homebridge/node_modules/homebridge-teslafi/dist/platform/platformAccessoryOnline.js:53
            if (s.subtype && s.subtype?.indexOf('locationsensor') > -1) {
                                       ^

SyntaxError: Unexpected token '.'
    at wrapSafe (internal/modules/cjs/loader.js:1054:16)
    at Module._compile (internal/modules/cjs/loader.js:1102:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
    at Module.load (internal/modules/cjs/loader.js:986:32)
    at Function.Module._load (internal/modules/cjs/loader.js:879:14)
    at Module.require (internal/modules/cjs/loader.js:1026:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/homebridge/node_modules/homebridge-teslafi/src/platform/platform.ts:12:1)
    at Module._compile (internal/modules/cjs/loader.js:1138:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
[4/3/2021, 7:34:10 PM] ====================
@loftux
Copy link
Owner

loftux commented Apr 4, 2021

Thanks for your report.

What version of node.js do you have? I have 14.15.4.
If an older version, can bee related to this issue? nodejs/node#31284
Can you try updating node.js if necessary?

@brianjw
Copy link
Author

brianjw commented Apr 4, 2021

I was on 12.x. Just updated node.js and the plugin works. Thanks!

@brianjw brianjw closed this as completed Apr 4, 2021
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