Hi,
ich hab Gedankenlos (weil ich schauen wollte ob die neueste Version die Versionsnummer mitliefert) ein update von zigbee2mqtt 2.4.0 auf 2.7.2 gemacht und jetzt folgendes im Log:
pi@fhempi:/opt/zigbee2mqtt $ node -v
v20.15.0
pi@fhempi:/opt/zigbee2mqtt $ pm2 logs zigbee2mqtt
[TAILING] Tailing last 15 lines for [zigbee2mqtt] process (change the value with --lines option)
/home/pi/.pm2/logs/zigbee2mqtt-error.log last 15 lines:
0|zigbee2m | at Object.<anonymous> (/opt/zigbee2mqtt/dist/extension/availability.js:47:36) {
0|zigbee2m | code: 'ERR_REQUIRE_ESM'
0|zigbee2m | }
0|zigbee2m | Error [ERR_REQUIRE_ESM]: require() of ES Module /opt/zigbee2mqtt/node_modules/.pnpm/debounce@3.0.0/node_modules/debounce/index.js from /opt/zigbee2mqtt/dist/extension/availability.js not supported.
0|zigbee2m | Instead change the require of index.js in /opt/zigbee2mqtt/dist/extension/availability.js to a dynamic import() which is available in all CommonJS modules.
0|zigbee2m | at Hook._require.Module.require (/usr/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:101:39)
0|zigbee2m | at Object.<anonymous> (/opt/zigbee2mqtt/dist/extension/availability.js:47:36) {
0|zigbee2m | code: 'ERR_REQUIRE_ESM'
0|zigbee2m | }
0|zigbee2m | Error [ERR_REQUIRE_ESM]: require() of ES Module /opt/zigbee2mqtt/node_modules/.pnpm/debounce@3.0.0/node_modules/debounce/index.js from /opt/zigbee2mqtt/dist/extension/availability.js not supported.
0|zigbee2m | Instead change the require of index.js in /opt/zigbee2mqtt/dist/extension/availability.js to a dynamic import() which is available in all CommonJS modules.
0|zigbee2m | at Hook._require.Module.require (/usr/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:101:39)
0|zigbee2m | at Object.<anonymous> (/opt/zigbee2mqtt/dist/extension/availability.js:47:36) {
0|zigbee2m | code: 'ERR_REQUIRE_ESM'
0|zigbee2m | }
/home/pi/.pm2/logs/zigbee2mqtt-out.log last 15 lines:
0|zigbee2m | Starting Zigbee2MQTT without watchdog.
0|zigbee2m | Starting Zigbee2MQTT without watchdog.
0|zigbee2m | Starting Zigbee2MQTT without watchdog.
0|zigbee2m | Starting Zigbee2MQTT without watchdog.
0|zigbee2m | Starting Zigbee2MQTT without watchdog.
0|zigbee2m | Starting Zigbee2MQTT without watchdog.
0|zigbee2m | Starting Zigbee2MQTT without watchdog.
0|zigbee2m | Starting Zigbee2MQTT without watchdog.
0|zigbee2m | Starting Zigbee2MQTT without watchdog.
0|zigbee2m | Starting Zigbee2MQTT without watchdog.
0|zigbee2m | Starting Zigbee2MQTT without watchdog.
0|zigbee2m | Starting Zigbee2MQTT without watchdog.
0|zigbee2m | Starting Zigbee2MQTT without watchdog.
0|zigbee2m | Starting Zigbee2MQTT without watchdog.
0|zigbee2m | Starting Zigbee2MQTT without watchdog.
0|zigbee2mqtt | Error [ERR_REQUIRE_ESM]: require() of ES Module /opt/zigbee2mqtt/node_modules/.pnpm/debounce@3.0.0/node_modules/debounce/index.js from /opt/zigbee2mqtt/dist/extension/availability.js not supported.
0|zigbee2mqtt | Instead change the require of index.js in /opt/zigbee2mqtt/dist/extension/availability.js to a dynamic import() which is available in all CommonJS modules.
0|zigbee2mqtt | at Hook._require.Module.require (/usr/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:101:39)
0|zigbee2mqtt | at Object.<anonymous> (/opt/zigbee2mqtt/dist/extension/availability.js:47:36) {
0|zigbee2mqtt | code: 'ERR_REQUIRE_ESM'
0|zigbee2mqtt | }
Kann wer was mit der Meldung anfangen?
Es läuft noch Buster auf dem System.
Die Suche zeigt den issue:
https://github.com/Koenkk/zigbee2mqtt/issues/29943
Ich bin unsicher was jetzt machen.
Kann mir wer eine Anleitung zeigen wie ich wieder auf die vorherige Version wechseln kann, bis ich die Ursache gefunden habe?
Gruß Thomas
Ich hab debounce@2.1.1 installiert, damit startet z2m wieder:
pi@fhempi:/opt/zigbee2mqtt $ npm cache clean --force
npm warn using --force Recommended protections disabled.
pi@fhempi:/opt/zigbee2mqtt $ rm -rf node_modules pnpm-lock.yaml package-lock.json
pi@fhempi:/opt/zigbee2mqtt $ npm cache clean --force
npm warn using --force Recommended protections disabled.
pi@fhempi:/opt/zigbee2mqtt $ npm install debounce@2.1.1
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE package: 'zigbee2mqtt-windfront@2.6.2',
npm warn EBADENGINE required: { node: '>=22.12.0' },
npm warn EBADENGINE current: { node: 'v20.15.0', npm: '10.8.1' }
npm warn EBADENGINE }
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE package: 'vite@7.3.1',
npm warn EBADENGINE required: { node: '^20.19.0 || >=22.12.0' },
npm warn EBADENGINE current: { node: 'v20.15.0', npm: '10.8.1' }
npm warn EBADENGINE }
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE package: 'zigbee-on-host@0.2.4',
npm warn EBADENGINE required: { node: '^20.19.0 || >=22.12.0' },
npm warn EBADENGINE current: { node: 'v20.15.0', npm: '10.8.1' }
npm warn EBADENGINE }
added 277 packages, and audited 278 packages in 6m
59 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities