homebridge-switchbot: Bug: v3.5.0-beta crashes on restart
Describe the Bug
file:///var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/dist/platform.js:36
import { EveHomeKitTypes } from 'homebridge-lib';
^^^^^^^^^^^^^^^
SyntaxError: The requested module 'homebridge-lib' does not provide an export named 'EveHomeKitTypes'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21)
at ModuleJob.run (node:internal/modules/esm/module_job:217:5)
at ModuleLoader.import (node:internal/modules/esm/loader:316:24)
at Plugin.load (/var/lib/homebridge/node_modules/homebridge/src/plugin.ts:227:40)
at ChildBridgeFork.loadPlugin (/var/lib/homebridge/node_modules/homebridge/src/childBridgeFork.ts:110:5)
[15/05/2024, 08:46:57] [SwitchBot] Child bridge process ended
[15/05/2024, 08:46:57] [SwitchBot] Process Ended. Code: 1, Signal: null
[15/05/2024, 08:47:04] [SwitchBot] Restarting Process...
[15/05/2024, 08:47:05] [SwitchBot] Launched child bridge with PID 228482
To Reproduce
Just try installing beta
Expected Behavior
Don’t crash
Relevant Log Output
[15/05/2024, 08:46:46] [SwitchBot] Process Ended. Code: 143, Signal: null
[15/05/2024, 08:46:53] [SwitchBot] Restarting Process...
[15/05/2024, 08:46:53] [SwitchBot] Launched child bridge with PID 228468
file:///var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/dist/platform.js:36
import { EveHomeKitTypes } from 'homebridge-lib';
^^^^^^^^^^^^^^^
SyntaxError: The requested module 'homebridge-lib' does not provide an export named 'EveHomeKitTypes'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21)
at ModuleJob.run (node:internal/modules/esm/module_job:217:5)
at ModuleLoader.import (node:internal/modules/esm/loader:316:24)
at Plugin.load (/var/lib/homebridge/node_modules/homebridge/src/plugin.ts:227:40)
at ChildBridgeFork.loadPlugin (/var/lib/homebridge/node_modules/homebridge/src/childBridgeFork.ts:110:5)
[15/05/2024, 08:46:57] [SwitchBot] Child bridge process ended
[15/05/2024, 08:46:57] [SwitchBot] Process Ended. Code: 1, Signal: null
[15/05/2024, 08:47:04] [SwitchBot] Restarting Process...
[15/05/2024, 08:47:05] [SwitchBot] Launched child bridge with PID 228482
file:///var/lib/homebridge/node_modules/@switchbot/homebridge-switchbot/dist/platform.js:36
import { EveHomeKitTypes } from 'homebridge-lib';
^^^^^^^^^^^^^^^
SyntaxError: The requested module 'homebridge-lib' does not provide an export named 'EveHomeKitTypes'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21)
at ModuleJob.run (node:internal/modules/esm/module_job:217:5)
at ModuleLoader.import (node:internal/modules/esm/loader:316:24)
at Plugin.load (/var/lib/homebridge/node_modules/homebridge/src/plugin.ts:227:40)
at ChildBridgeFork.loadPlugin (/var/lib/homebridge/node_modules/homebridge/src/childBridgeFork.ts:110:5)
[15/05/2024, 08:47:05] [SwitchBot] Child bridge process ended
[15/05/2024, 08:47:05] [SwitchBot] Process Ended. Code: 1, Signal: null
[15/
Screenshots
No response
Device and Model
not needed
Node.js Version
v20.13.1
NPM Version
x
Homebridge Version
x
Homebridge Switchbot Plugin Version
x
Homebridge Config UI X Plugin Version
x
Operating System
Debian GNU/Linux Bullseye (11)
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 30
Commits related to this issue
- fixes 971 TypeError: Cannot set properties of undefined (setting 'Service') - https://github.com/OpenWonderLabs/homebridge-switchbot/issues/971#issuecomment-2116667352 — committed to OpenWonderLabs/homebridge-switchbot by donavanbecker 3 years ago
- fix for #971 — committed to OpenWonderLabs/homebridge-switchbot by donavanbecker 3 years ago
- potentail fix for TypeError: Cannot set properties of undefined (setting 'Service') https://github.com/OpenWonderLabs/homebridge-switchbot/issues/971#issuecomment-2121504450 — committed to OpenWonderLabs/homebridge-switchbot by donavanbecker 3 years ago
Yes! Thanks for your support of this plugin.
Haven’t seen any more. And since they seem to trying to reach Amazon’s EC2 infrastructure, best to ignore the error for now.
Thanks!
Tried latest beta and it doesn’t crash homebridge. Thanks 🤩
Please try again, with the latest beta
Still NG. Different error:
OK. Thanks.
Also had to fall back to prod version. I couldn’t select the prior beta.