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.

    Electron error? js error? Javascrpt error?

    Scheduled Pinned Locked Moved Solved Troubleshooting
    7 Posts 2 Posters 412 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.
    • D Offline
      Dayzwell
      last edited by

      Hi i’m training to run MM on a raspberry pi, this is my first trying something like this and seeing this much code, when i tried npm run start i get all of this errors, tried to update things and its giving me the same error, should I just tried a fresh install? thanks for the help guys.

      dayzwell@raspberrypi:~/MagicMirror $ npm run start

      magicmirror@2.31.0 start
      npm run start:x11

      magicmirror@2.31.0 start:x11
      DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

      [2025-06-16 12:46:38.249] [ERROR] App threw an error during load
      [2025-06-16 12:46:38.259] [ERROR] ReferenceError: ReadableStream is not defined
      at Object. (/home/dayzwell/MagicMirror/node_modules/undici/lib/web/fetch/webidl.js:471:58)
      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:13377)
      at Module.require (node:internal/modules/cjs/loader:1035:19)
      at require (node:internal/modules/cjs/helpers:102:18)
      at Object. (/home/dayzwell/MagicMirror/node_modules/undici/lib/web/fetch/util.js:12:20)
      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:13377)
      at Module.require (node:internal/modules/cjs/loader:1035:19)
      at require (node:internal/modules/cjs/helpers:102:18)
      A JavaScript error occurred in the main process
      Uncaught Exception:
      ReferenceError: ReadableStream is not defined
      at Object. (/home/dayzwell/MagicMirror/node_modules/undici/lib/web/fetch/webidl.js:471:58)
      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:13377)
      at Module.require (node:internal/modules/cjs/loader:1035:19)
      at require (node:internal/modules/cjs/helpers:102:18)
      at Object. (/home/dayzwell/MagicMirror/node_modules/undici/lib/web/fetch/util.js:12:20)
      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:13377)
      at Module.require (node:internal/modules/cjs/loader:1035:19)
      at require (node:internal/modules/cjs/helpers:102:18)
      MESA-LOADER: failed to retrieve device information
      MESA-LOADER: failed to retrieve device information
      MESA-LOADER: failed to retrieve device information
      os_same_file_description couldn’t determine if two DRM fds reference the same file description. (Function not implemented)
      Let’s just assume that file descriptors for the same file probablyshare the file description instead. This may cause problems whenthat isn’t the case.
      [4820:0616/114639.047070:ERROR:gbm_wrapper.cc(255)] Failed to export buffer to dma_buf: No such file or directory (2)

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

        @Dayzwell I see his instructions left out a step.
        I opened this issue https://github.com/xadamxk/MMM-LOLESPORTS-SCHEDULES/issues/8

        he has updated the instructions

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @Dayzwell can you tell us what you did to setup and install MagicMirror. what system and OS this is

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            @sdetweil Im using a raspberry 3 using Raspberry Pi OS, I install and update the MM and it work until i tried to install this module https://github.com/xadamxk/MMM-LOLESPORTS-SCHEDULES update electron and everething I could find and now its giving me those errors

            S 2 Replies Last reply Reply Quote 0
            • S Offline
              sdetweil @Dayzwell
              last edited by sdetweil

              @Dayzwell ok, so lets start over a little

              for that module in config.js add

              disabled:true,
              

              after its module: line

              and then do

              cd ~/MagicMirror 
              git checkout package.json
              rm -rf node_modules
              npm run install-mm 
              

              then try

              npm start
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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

                @Dayzwell I see his instructions left out a step.
                I opened this issue https://github.com/xadamxk/MMM-LOLESPORTS-SCHEDULES/issues/8

                he has updated the instructions

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                D 1 Reply Last reply Reply Quote 1
                • D Offline
                  Dayzwell @sdetweil
                  last edited by

                  @sdetweil thak you it works now :)

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

                    @Dayzwell awesome!!

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    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