Read the statement by Michael Teeuw here.
MMM-PublicTransportHafas - Error when loading - DeparturFetcher.mjs
-
Hi,
I can confirm: I have the same issue.
Updated to latest node and MM version.
Did a npm -install after updating MM and node. Unfortunately it did not have an effect.Any tips ?
Error message:
[2025-05-04 20:17:43.557] [ERROR] Error when loading MMM-PublicTransportHafas: require() of ES Module /home/pi/MagicMirror/modules/MMM-PublicTransportHafas/core/DepartureFetcher.mjs not supported. Instead change the require of /home/pi/MagicMirror/modules/MMM-PublicTransportHafas/core/DepartureFetcher.mjs to a dynamic import() which is available in all CommonJS modules. -
@sdetweil
I used your upgrade script, update is completed, made an new install from MMM-PublicTransportHafas but it does not work -
@Volkae ok, did you do the apply ?
do
node -v cd ~/MagicMirror grep version package.json
MagicMirror version should be 2.31.0
-
@p1lspeda just fyi, if you use the upgrade script it will npm install all the modules that have a package.json with dependencies after completing the MagicMirror upgrade
-
@Volkae @p1lspeda @KristjanESPERANTO will have to advise next steps
-
@sdetweil said in MMM-PublicTransportHafas - Error when loading - DeparturFetcher.mjs:
@Volkae @p1lspeda @KristjanESPERANTO will have to advise next steps
I need the system information part from the logs. Like this:
[2025-01-14 20:05:03.529] [INFO] System information: ### SYSTEM: manufacturer: Raspberry Pi Foundation; model: Raspberry Pi 4 Model B Rev 1.5; virtual: false ### OS: platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.1.21-v8+ ### VERSIONS: electron: 31.2.1; used node: 20.15.0; installed node: 22.4.1; npm: 10.8.1; pm2: ### OTHER: timeZone: Europe/Berlin; ELECTRON_ENABLE_GPU: undefined
-
@KristjanESPERANTO said in MMM-PublicTransportHafas - Error when loading - DeparturFetcher.mjs:
Here you go
[2025-05-06 06:46:30.229] [INFO] System information: ### SYSTEM: manufacturer: ; model: ; virtual: false ### OS: platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.12.20+rpt-rpi-v8 ### VERSIONS: electron: 32.2.7; used node: 22.14.0; installed node: 22.14.0; npm: 10.9.2; pm2: 5.4.3 ### OTHER: timeZone: Europe/Berlin; ELECTRON_ENABLE_GPU: undefined
-
@sdetweil said in MMM-PublicTransportHafas - Error when loading - DeparturFetcher.mjs:
node -v
cd ~/MagicMirror
grep version package.json22.14.0
“version”: “2.30.0”, -
@KristjanESPERANTO said in MMM-PublicTransportHafas - Error when loading - DeparturFetcher.mjs:
@sdetweil said in MMM-PublicTransportHafas - Error when loading - DeparturFetcher.mjs:
@Volkae @p1lspeda @KristjanESPERANTO will have to advise next steps
I need the system information part from the logs. Like this:
[2025-01-14 20:05:03.529] [INFO] System information: ### SYSTEM: manufacturer: Raspberry Pi Foundation; model: Raspberry Pi 4 Model B Rev 1.5; virtual: false ### OS: platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.1.21-v8+ ### VERSIONS: electron: 31.2.1; used node: 20.15.0; installed node: 22.4.1; npm: 10.8.1; pm2: ### OTHER: timeZone: Europe/Berlin; ELECTRON_ENABLE_GPU: undefined
Sorry, but I am not sure how to see this informations
-
@Volkae said in MMM-PublicTransportHafas - Error when loading - DeparturFetcher.mjs:
“version”: “2.30.0”,
You need to update MagicMirror. The module doesn’t work anymore with MagicMirror version 2.30.0.