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

Error loading plugin #22

Open
bozman2021 opened this issue Sep 24, 2021 · 3 comments
Open

Error loading plugin #22

bozman2021 opened this issue Sep 24, 2021 · 3 comments

Comments

@bozman2021
Copy link

Hi, got this error.
I use:
Twinkle firmware 2.7.1
Homebridge 1.3.4

Any ideas on why this is happening?

============================================================
[2021-9-24 14:40:31] ERROR LOADING PLUGIN homebridge-twinkly:
[2021-9-24 14:40:31] /usr/local/lib/node_modules/homebridge-twinkly/index.js:125
let lastSeen = device.lastSeen?.toLocaleString() || "never";
^

SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Plugin.load (/usr/local/lib/node_modules/homebridge/src/plugin.ts:187:27)
at /usr/local/lib/node_modules/homebridge/src/pluginManager.ts:126:16
at Map.forEach ()
at PluginManager.initializeInstalledPlugins (/usr/local/lib/node_modules/homebridge/src/pluginManager.ts:124:18)
at Server.start (/usr/local/lib/node_modules/homebridge/src/server.ts:156:24)
[2021-9-24 14:40:31] ====================

@bozman2021
Copy link
Author

Reverting to version 0.3.4 works fine.
Using 0.4 and 0.4.1 gives me the error message above.

@SzilagyiR
Copy link

Reverting to version 0.3.4 works fine. Using 0.4 and 0.4.1 gives me the error message above.

Same probelem, and solution here!

@szerglyiphone
Copy link

Thank you very much for your reply, indeed the plugin's version 0.3.4 is working properly. However I do not understand why the developer do not fix the latest versions...

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

3 participants