MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MagicMirror (vers:2.27) : split Error - 07May2024

    Scheduled Pinned Locked Moved Solved Troubleshooting
    6 Posts 2 Posters 313 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N Offline
      nkc
      last edited by

      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

      S 1 Reply Last reply Reply Quote 0
      • N Offline
        nkc @sdetweil
        last edited by

        @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.

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @nkc
          last edited by

          @nkc can u show me the modules/default folder

          ls

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @sdetweil
            last edited by

            @nkc what happened before this?

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            N 1 Reply Last reply Reply Quote 0
            • N Offline
              nkc @sdetweil
              last edited by

              @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 weather

              Before this - It was on MM 2.25 and then I installed MM 2.27 with the script.

              Thanks,
              Regards,
              Neel.

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @nkc
                last edited by

                @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

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                N 1 Reply Last reply Reply Quote 0
                • N Offline
                  nkc @sdetweil
                  last edited by

                  @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.

                  1 Reply Last reply Reply Quote 0
                  • S sdetweil has marked this topic as solved on
                  • 1 / 1
                  • First post
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Sam, technical setup by Karsten.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy