Read the statement by Michael Teeuw here.
MagicMirror (vers:2.27) : split Error - 07May2024
-
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)
(Useelectron --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 -
@sdetweil - Hi - I have re-installed a clean version of MM ver 2.27 again (the third time) - And the modules have worked.
Thank you for your time.
I will press on to install other modules and test them.
Thanks. -
@nkc can u show me the modules/default folder
ls
-
@nkc what happened before this?
-
@sdetweil - The modules default folder - as of after installing MM 2.27 from your script raspberrypi.sh ;
pi@raspi:~/MagicMirror/modules/default $ ls -l
total 40
drwxr-xr-x 5 pi pi 4096 May 7 08:10 alert
drwxr-xr-x 3 pi pi 4096 May 7 08:10 clock
drwxr-xr-x 2 pi pi 4096 May 7 08:10 compliments
-rw-r–r-- 1 pi pi 395 May 7 08:10 defaultmodules.js
drwxr-xr-x 2 pi pi 4096 May 7 08:10 helloworld
drwxr-xr-x 2 pi pi 4096 May 7 08:10 newsfeed
drwxr-xr-x 2 pi pi 4096 May 7 08:10 updatenotification
-rw-r–r-- 1 pi pi 5855 May 7 08:10 utils.js
drwxr-xr-x 3 pi pi 4096 May 7 08:10 weatherBefore this - It was on MM 2.25 and then I installed MM 2.27 with the script.
Thanks,
Regards,
Neel. -
@nkc my upgrade script?
can you examine your config.js and look for any module
that does NOT have that exact spelling
all lowercase
module
-
@sdetweil - Hi - I have re-installed a clean version of MM ver 2.27 again (the third time) - And the modules have worked.
Thank you for your time.
I will press on to install other modules and test them.
Thanks. -
S sdetweil has marked this topic as solved on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login