MagicMirror (vers:2.27.0) : split error occurs on every single module - 07May2024
Hello;
I have had troubles getting MM up - it was all working normal until it just crached - wth error as attached below :
magicmirror@2.27.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js run dev
[2024-05-07 09:21:07.079] [LOG] Starting MagicMirror: v2.27.0
[2024-05-07 09:21:07.144] [LOG] Loading config …
[2024-05-07 09:21:07.157] [LOG] config template file not exists, no envsubst
[2024-05-07 09:21:07.197] [LOG] Loading module helpers …
[2024-05-07 09:21:07.202] [LOG] No helper found for module: clock.
[2024-05-07 09:21:08.086] [ERROR] (node:27333) UnhandledPromiseRejectionWarning: TypeError: Cannot read properties of undefined (reading ‘split’)
at loadModule (/home/pi/MagicMirror/js/app.js:156:27)
at loadModules (/home/pi/MagicMirror/js/app.js:213:10)
at async App.start (/home/pi/MagicMirror/js/app.js:261:3)
(Use electron --trace-warnings ... to show where the warning was created)
[2024-05-07 09:21:08.089] [ERROR] (node:27333) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
[2024-05-07 09:21:17.744] [INFO] System information:
SYSTEM: manufacturer: Raspberry Pi Foundation; model: Raspberry Pi 3 Model B Plus Rev 1.3; raspberry: [object Object]; virtual: false
OS: platform: linux; distro: Raspbian GNU/Linux; release: 11; arch: arm; kernel: 6.1.47-v7+
VERSIONS: electron: 29.3.2; used node: 20.9.0; installed node: 20.8.0; npm: 10.1.0; pm2: 5.3.1
OTHER: timeZone: Australia/Sydney; ELECTRON_ENABLE_GPU: undefined
It crashes on every single module - I tested it by just having one module in the modules folder and the error above is same for all the modules. Here I have tested with ‘clock’ - and hence the errors above.
The MM does not start.
Can you please advise on how to fix the above issue.
Thank you.
Regards,
Neel