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.js error

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    3 Posts 2 Posters 434 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.
    • A Offline
      anonymous321
      last edited by

      I’ve been getting a lot of issue trying to get magic mirror to start. I’m starting to get a little frustrated as I decided to wait a few months to finish this project due to issues with the calendar update that I could not resolve. I tried using the following script to install MM sdetweil /MagicMirror_scripts. Im getting the following error on a raspberry pi 3 model. I have the install.log file but im not sure how to upload it.

      > 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-04-11 23:09:32.767] [ERROR] App threw an error during load
      > [2025-04-11 23:09:32.777] [ERROR] TypeError: Log.log is not a function
      >     at Object.<anonymous> (/home/pi/MagicMirror-old/js/app.js:22:5)
      >     at Module._compile (node:internal/modules/cjs/loader:1569:14)
      >     at Module._extensions..js (node:internal/modules/cjs/loader:1722:10)
      >     at Module.load (node:internal/modules/cjs/loader:1296:32)
      >     at Module._load (node:internal/modules/cjs/loader:1115:12)
      >     at c._load (node:electron/js2c/node_init:2:18008)
      >     at TracingChannel.traceSync (node:diagnostics_channel:322:14)
      >     at wrapModuleLoad (node:internal/modules/cjs/loader:227:24)
      >     at Module.require (node:internal/modules/cjs/loader:1318:12)
      >     at require (node:internal/modules/helpers:136:16)
      >     at Object.<anonymous> (/home/pi/MagicMirror-old/js/electron.js:4:14)
      >     at Module._compile (node:internal/modules/cjs/loader:1569:14)
      >     at Module._extensions..js (node:internal/modules/cjs/loader:1722:10)
      >     at Module.load (node:internal/modules/cjs/loader:1296:32)
      >     at Module._load (node:internal/modules/cjs/loader:1115:12)
      >     at c._load (node:electron/js2c/node_init:2:18008)
      > A JavaScript error occurred in the main process
      > Uncaught Exception:
      > TypeError: Log.log is not a function
      >     at Object.<anonymous> (/home/pi/MagicMirror-old/js/app.js:22:5)
      >     at Module._compile (node:internal/modules/cjs/loader:1569:14)
      >     at Module._extensions..js (node:internal/modules/cjs/loader:1722:10)
      >     at Module.load (node:internal/modules/cjs/loader:1296:32)
      >     at Module._load (node:internal/modules/cjs/loader:1115:12)
      >     at c._load (node:electron/js2c/node_init:2:18008)
      >     at TracingChannel.traceSync (node:diagnostics_channel:322:14)
      >     at wrapModuleLoad (node:internal/modules/cjs/loader:227:24)
      >     at Module.require (node:internal/modules/cjs/loader:1318:12)
      >     at require (node:internal/modules/helpers:136:16)
      >     at Object.<anonymous> (/home/pi/MagicMirror-old/js/electron.js:4:14)
      >     at Module._compile (node:internal/modules/cjs/loader:1569:14)
      >     at Module._extensions..js (node:internal/modules/cjs/loader:1722:10)
      >     at Module.load (node:internal/modules/cjs/loader:1296:32)
      >     at Module._load (node:internal/modules/cjs/loader:1115:12)
      >     at c._load (node:electron/js2c/node_init:2:18008)
      > [2025-04-11 23:09:32.784] [ERROR] (node:35524) [DEP0025] DeprecationWarning: sys is deprecated.
      > (Use `electron --trace-deprecation ...` to show where the warning was created)
      > > magicmirror@2.31.0 start:x11
      > > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      > 
      > [2025-04-11 23:09:32.767] [ERROR] App threw an error during load
      > [2025-04-11 23:09:32.777] [ERROR] TypeError: Log.log is not a function
      > > magicmirror@2.31.0 start:x11
      > > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      > 
      > [2025-04-11 23:09:32.767] [ERROR] App threw an error during load
      > [2025-04-11 23:09:32.777] [ERROR] TypeError: Log.log is not a function
      >     at Object.<anonymous> (/home/pi/MagicMirror-old/js/app.js:22:5)
      >     at Module._compile (node:internal/modules/cjs/loader:1569:14)
      >     at Module._extensions..js (node:internal/modules/cjs/loader:1722:10)
      >     at Module.load (node:internal/modules/cjs/loader:1296:32)
      >     at Module._load (node:internal/modules/cjs/loader:1115:12)
      >     at c._load (node:electron/js2c/node_init:2:18008)
      >     at TracingChannel.traceSync (node:diagnostics_channel:322:14)
      >     at wrapModuleLoad (node:internal/modules/cjs/loader:227:24)
      >     at Module.require (node:internal/modules/cjs/loader:1318:12)
      >     at require (node:internal/modules/helpers:136:16)
      >     at Object.<anonymous> (/home/pi/MagicMirror-old/js/electron.js:4:14)
      >     at Module._compile (node:internal/modules/cjs/loader:1569:14)
      >     at Module._extensions..js (node:internal/modules/cjs/loader:1722:10)
      >     at Module.load (node:internal/modules/cjs/loader:1296:32)
      >     at Module._load (node:internal/modules/cjs/loader:1115:12)
      >     at c._load (node:electron/js2c/node_init:2:18008)
      > A JavaScript error occurred in the main process
      > Uncaught Exception:
      > TypeError: Log.log is not a function
      >     at Object.<anonymous> (/home/pi/MagicMirror-old/js/app.js:22:5)
      >     at Module._compile (node:internal/modules/cjs/loader:1569:14)
      >     at Module._extensions..js (node:internal/modules/cjs/loader:1722:10)
      >     at Module.load (node:internal/modules/cjs/loader:1296:32)
      >     at Module._load (node:internal/modules/cjs/loader:1115:12)
      >     at c._load (node:electron/js2c/node_init:2:18008)
      >     at TracingChannel.traceSync (node:diagnostics_channel:322:14)
      >     at wrapModuleLoad (node:internal/modules/cjs/loader:227:24)
      >     at Module.require (node:internal/modules/cjs/loader:1318:12)
      >     at require (node:internal/modules/helpers:136:16)
      >     at Object.<anonymous> (/home/pi/MagicMirror-old/js/electron.js:4:14)
      >     at Module._compile (node:internal/modules/cjs/loader:1569:14)
      >     at Module._extensions..js (node:internal/modules/cjs/loader:1722:10)
      >     at Module.load (node:internal/modules/cjs/loader:1296:32)
      >     at Module._load (node:internal/modules/cjs/loader:1115:12)
      >     at c._load (node:electron/js2c/node_init:2:18008)
      > [2025-04-11 23:09:32.784] [ERROR] (node:35524) [DEP0025] DeprecationWarning: sys is deprecated.
      > (Use `electron --trace-deprecation ...` to show where the warning was created)
      > > magicmirror@2.31.0 start:x11
      > > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      > 
      > [2025-04-11 23:09:32.767] [ERROR] App threw an error during load
      > [2025-04-11 23:09:32.777] [ERROR] TypeError: Log.log is not a function
      > 
      > 
      
      
      S 2 Replies Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @anonymous321
        last edited by

        @anonymous321 install.log is just a text file, you copy/paste same as you did for the error list

        is this a new install or later?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @anonymous321
          last edited by

          @anonymous321 can you do this

          cd ~/MagicMirror/vendor
          npm install
          cd ../fonts
          npm install
          

          and restart MagicMirror

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0

          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
          • 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