TA2k / ioBroker.velux

ioBroker Adapter for Velux KIX 300
MIT License
5 stars 7 forks source link

velux 0.0.7 Adapter breaks with js-controller:6.0.1 #21

Closed T-S-Garp closed 1 month ago

T-S-Garp commented 1 month ago

Describe the bug
velux 0.0.7 Adapter breaks with js-controller:6.0.1

To Reproduce
Steps to reproduce the behavior:

  1. Start velux instance v0.0.7 after updating to js-controller 6.0.1

Expected behavior
The instance starts and show green (Connected to host)

Screenshots & Logfiles

host.castor 2024-06-11 20:50:55.601 info Restart adapter system.adapter.velux.0 because enabled
host.castor 2024-06-11 20:50:55.600 error instance system.adapter.velux.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
host.castor 2024-06-11 20:50:55.600 error Caught by controller[0]: Node.js v18.20.3
host.castor 2024-06-11 20:50:55.600 error Caught by controller[0]: at node:internal/main/run_main_module:28:49
host.castor 2024-06-11 20:50:55.600 error Caught by controller[0]: at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
host.castor 2024-06-11 20:50:55.600 error Caught by controller[0]: at Module._load (node:internal/modules/cjs/loader:1019:12)
host.castor 2024-06-11 20:50:55.600 error Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1203:32)
host.castor 2024-06-11 20:50:55.600 error Caught by controller[0]: at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
host.castor 2024-06-11 20:50:55.600 error Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1364:14)
host.castor 2024-06-11 20:50:55.600 error Caught by controller[0]: at Object. (/opt/iobroker/node_modules/iobroker.velux/main.js:13:27)
host.castor 2024-06-11 20:50:55.600 error Caught by controller[0]: TypeError: Class extends value # is not a constructor or null
host.castor 2024-06-11 20:50:55.600 error Caught by controller[0]: ^
host.castor 2024-06-11 20:50:55.600 error Caught by controller[0]: class Velux extends utils.Adapter {
host.castor 2024-06-11 20:50:55.600 error Caught by controller[0]: /opt/iobroker/node_modules/iobroker.velux/main.js:13

Versions:

Additional context
Add any other context about the problem here.

TA2k commented 1 month ago

Please test GitHub version

T-S-Garp commented 1 month ago

@TA2k you are the best. The Velux adapter is working again! Many thanks for the lightning-fast repair!!! image

Please let me know if you want me to mark this issue as 'closed'.