Read the statement by Michael Teeuw here.
MMM-PublicTransportHafas - Error when loading - DeparturFetcher.mjs
-
@p1lspeda said in MMM-PublicTransportHafas - Error when loading - DeparturFetcher.mjs:
### VERSIONS: electron: 32.2.7; used node: 22.14.0; installed node: 22.14.0; npm: 10.9.2; pm2: 5.4.3
You still need to upgrade MagicMirror. I recommend the official upgrade process.
-
I used the update script again and now MM is 2.31.0
MMM-PublicTransportHafas works again, that`s fine, but now MMM-SmartWebDisplay is gone…
Not fine… -
@Volkae any errors listed in MagicMirror startup?
-
@sdetweil
Sorry, I don`t know how to show the errors during startup :-( -
@Volkae where does npm start output
if using pm2 tge
pm2 logs --lines=xxx
xxx is the number of most recent lines
default 15probably 100 good start
note the output comes in 2 partserror and output
-
@sdetweil
Not using pm2
using cronjob to start MM -
@Volkae i forgot to mention that the full calendar url
is shown
i have deleted the other message -
@sdetweil
Upps,
thank you!!! -
@KristjanESPERANTO
I’ve upgraded to the latest MM Versionpi@magicmirror:~/MagicMirror $ grep version package.json "version": "2.31.0-develop",
[2025-05-07 09:57:22.742] [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
And I still get this error
[2025-05-07 09:57:19.297] [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.
My module version:
pi@magicmirror:~/MagicMirror/modules/MMM-PublicTransportHafas $ grep version package.json "version": "3.1.11", pi@magicmirror:~/MagicMirror/modules/MMM-PublicTransportHafas $ git pull Already up to date.
I do not know what else I can do or what I have missed
-
I just done a fresh install of the module and it works fine for me.
Just out of curiosity, did you do the following steps?
-
cd MMM-PublicTransportHafas
-
npm ci --omit=dev
@KristjanESPERANTO ) saw the below in the log, I am assuming it is nothing to be concerned about?
-