Read the statement by Michael Teeuw here.
Electron.js error
-
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 > > -
@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?
-
@anonymous321 can you do this
cd ~/MagicMirror/vendor npm install cd ../fonts npm installand restart MagicMirror
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