MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Lmagenis
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    L
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 20
    • Groups 0

    Lmagenis

    @Lmagenis

    0
    Reputation
    1
    Profile views
    20
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    Lmagenis Unfollow Follow

    Latest posts made by Lmagenis

    • RE: JavaScript error

      @sdetweil I backed up the files with your script first in case the sd copy program in the pi failed. I didn’t need the backup, but it’s nice to have in case something goes wrong.

      when I ran “npm start” it was loading the modules and returned this:

      (I skipped copying the earliest info about all of the modules)

      [2026-05-12 07:52:44.151] [LOG] [node_helper] Connecting socket for: MMM-OpenWeatherForecast
      [2026-05-12 07:52:44.152] [LOG] [MMM-OpenWeatherForecast] ====================== Starting node_helper for module [MMM-OpenWeatherForecast]
      [2026-05-12 07:52:44.153] [LOG] [node_helper] Connecting socket for: newsfeed
      [2026-05-12 07:52:44.154] [LOG] [newsfeed] Starting node helper for: newsfeed
      [2026-05-12 07:52:44.155] [LOG] [app] Sockets connected & modules started …
      [10718:0512/075244.158823:ERROR:ui/ozone/platform/wayland/host/wayland_connection.cc:202] Failed to connect to Wayland display: No such file or directory (2)
      [10718:0512/075244.159077:ERROR:ui/ozone/platform/wayland/ozone_platform_wayland.cc:281] Failed to initialize Wayland platform
      [10718:0512/075244.159133:ERROR:ui/aura/env.cc:246] The platform failed to initialize. Exiting.
      /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV

      posted in Troubleshooting
      L
      Lmagenis
    • RE: JavaScript error

      @sdetweil got the new card up and running! Went through the scripts as you instructed but came up with a new error. Started the magic mirror in x11 and it works! Thanks again for your help! You’re indispensable!

      posted in Troubleshooting
      L
      Lmagenis
    • RE: JavaScript error

      @sdetweil Thank you! Looks like I have some cloning to do (once I get the new card)

      posted in Troubleshooting
      L
      Lmagenis
    • RE: JavaScript error

      @sdetweil
      The install returned “npm error A complete log of this…”

      posted in Troubleshooting
      L
      Lmagenis
    • RE: JavaScript error

      @sdetweil I really appreciate your help with this!

      The log has over 600 lines in it. Is there something specific to look for?

      posted in Troubleshooting
      L
      Lmagenis
    • RE: JavaScript error

      @sdetweil

      I’ve always used “npm start”. Tried starting it with both commands.

      pi@raspberrypi:~/MagicMirror $ Start MagicMirror
      -bash: Start: command not found
      pi@raspberrypi:~/MagicMirror $ npm start

      magicmirror@2.36.0 start
      node --run start:wayland

      /bin/sh: 1: ./node_modules/.bin/electron: not found
      pi@raspberrypi:~/MagicMirror $

      posted in Troubleshooting
      L
      Lmagenis
    • RE: JavaScript error

      @sdetweil

      Here’s what it returned:

      diff --git a/package.json b/package.json
      index b2c0eca…878e7cc 100644
      — a/package.json
      +++ b/package.json
      @@ -138,7 +138,7 @@
      “vitest”: “^4.1.5”
      },
      “optionalDependencies”: {

      •           "electron": "^41.3.0"
        
      •           "electron": "^22.3.4"
          },
          "engines": {
                  "node": ">=22.21.1 <23 || >=24"
        
      posted in Troubleshooting
      L
      Lmagenis
    • RE: JavaScript error

      @sdetweil

      On branch master
      Your branch is up to date with ‘origin/master’.

      Changes not staged for commit:
      (use “git add …” to update what will be committed)
      (use “git restore …” to discard changes in working directory)
      modified: package-lock.json
      modified: package.json

      Untracked files:
      (use “git add …” to include in what will be committed)
      RTSPtoWeb/
      icons/
      installers/
      make_error
      old_modules/
      run-start.sh
      splashscreen/

      no changes added to commit (use “git add” and/or “git commit -a”)

      posted in Troubleshooting
      L
      Lmagenis
    • RE: JavaScript error

      @sdetweil

      I’m not using pm2.
      I updated from the main MM site

      When I run npm run start:x11, I’m getting the same error.

      posted in Troubleshooting
      L
      Lmagenis
    • RE: JavaScript error

      @sdetweil

      It returned:
      App threw an error during load
      TypeError: styleText is not a function
      at /home/pi/MagicMirror/js/logger.js:40:42
      at Object. (/home/pi/MagicMirror/js/logger.js:114:2)
      at Module._compile (node:internal/modules/cjs/loader:1141:14)
      at Module._extensions…js (node:internal/modules/cjs/loader:1196:10)
      at Module.load (node:internal/modules/cjs/loader:1011:32)
      at Module._load (node:internal/modules/cjs/loader:846:12)
      at f._load (node:electron/js2c/asar_bundle:2:13330)
      at Module.require (node:internal/modules/cjs/loader:1035:19)
      at require (node:internal/modules/cjs/helpers:102:18)
      at Object. (/home/pi/MagicMirror/js/app.js:7:13)
      A JavaScript error occurred in the main process
      Uncaught Exception:
      TypeError: styleText is not a function
      at /home/pi/MagicMirror/js/logger.js:40:42
      at Object. (/home/pi/MagicMirror/js/logger.js:114:2)
      at Module._compile (node:internal/modules/cjs/loader:1141:14)
      at Module._extensions…js (node:internal/modules/cjs/loader:1196:10)
      at Module.load (node:internal/modules/cjs/loader:1011:32)
      at Module._load (node:internal/modules/cjs/loader:846:12)
      at f._load (node:electron/js2c/asar_bundle:2:13330)
      at Module.require (node:internal/modules/cjs/loader:1035:19)
      at require (node:internal/modules/cjs/helpers:102:18)
      at Object. (/home/pi/MagicMirror/js/app.js:7:13)
      [405959:0511/092036.982897:ERROR:wayland_connection.cc(224)] Failed to connect to Wayland display: No such file or directory (2)
      [405959:0511/092036.983156:ERROR:ozone_platform_wayland.cc(223)] Failed to initialize Wayland platform
      [405959:0511/092036.983172:ERROR:env.cc(255)] The platform failed to initialize. Exiting.
      The futex facility returned an unexpected error code.
      /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGABRT

      posted in Troubleshooting
      L
      Lmagenis