• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Fails to start... "Log.log is not a function"

Scheduled Pinned Locked Moved Unsolved Troubleshooting
16 Posts 2 Posters 988 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.
  • S Online
    sdetweil @Bimtronic
    last edited by Dec 10, 2024, 6:02 PM

    @Bimtronic tgx

    This looks like it is caused by MMM-SystemStats module

    You can edit the MMM-SystemStats.js
    and comment it out (add // as the start of the text on that line)

    One occurance is not commented

    Or change it to Log.info

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    B 1 Reply Last reply Dec 11, 2024, 6:49 PM Reply Quote 0
    • B Offline
      Bimtronic @sdetweil
      last edited by Dec 11, 2024, 6:49 PM

      @sdetweil

      I deleted MMM-SystemStats from my config.

      Still getting errors >

      mt@mt:~/MagicMirror $ npm start

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

      [2024-12-11 19:48:33.034] [ERROR] App threw an error during load
      [2024-12-11 19:48:33.042] [ERROR] TypeError: Log.log is not a function
      at Object. (/home/mt/MagicMirror/js/app.js:16:5)
      at Module._compile (node:internal/modules/cjs/loader:1484:14)
      at Module._extensions…js (node:internal/modules/cjs/loader:1564:10)
      at Module.load (node:internal/modules/cjs/loader:1295:32)
      at Module._load (node:internal/modules/cjs/loader:1111:12)
      at c._load (node:electron/js2c/node_init:2:17025)
      at Module.require (node:internal/modules/cjs/loader:1318:19)
      at require (node:internal/modules/helpers:179:18)
      at Object. (/home/mt/MagicMirror/js/electron.js:4:14)
      at Module._compile (node:internal/modules/cjs/loader:1484:14)
      at Module._extensions…js (node:internal/modules/cjs/loader:1564:10)
      at Module.load (node:internal/modules/cjs/loader:1295:32)
      at Module._load (node:internal/modules/cjs/loader:1111:12)
      at c._load (node:electron/js2c/node_init:2:17025)
      at cjsLoader (node:internal/modules/esm/translators:350:17)
      at ModuleWrap. (node:internal/modules/esm/translators:286:7)
      A JavaScript error occurred in the main process
      Uncaught Exception:
      TypeError: Log.log is not a function
      at Object. (/home/mt/MagicMirror/js/app.js:16:5)
      at Module._compile (node:internal/modules/cjs/loader:1484:14)
      at Module._extensions…js (node:internal/modules/cjs/loader:1564:10)
      at Module.load (node:internal/modules/cjs/loader:1295:32)
      at Module._load (node:internal/modules/cjs/loader:1111:12)
      at c._load (node:electron/js2c/node_init:2:17025)
      at Module.require (node:internal/modules/cjs/loader:1318:19)
      at require (node:internal/modules/helpers:179:18)
      at Object. (/home/mt/MagicMirror/js/electron.js:4:14)
      at Module._compile (node:internal/modules/cjs/loader:1484:14)
      at Module._extensions…js (node:internal/modules/cjs/loader:1564:10)
      at Module.load (node:internal/modules/cjs/loader:1295:32)
      at Module._load (node:internal/modules/cjs/loader:1111:12)
      at c._load (node:electron/js2c/node_init:2:17025)
      at cjsLoader (node:internal/modules/esm/translators:350:17)
      at ModuleWrap. (node:internal/modules/esm/translators:286:7)

      S 1 Reply Last reply Dec 11, 2024, 6:53 PM Reply Quote 0
      • S Online
        sdetweil @Bimtronic
        last edited by Dec 11, 2024, 6:53 PM

        @Bimtronic so weird

        add
        disabled:true,

        after every
        module:
        line

        and change to false one at a time

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        B 1 Reply Last reply Dec 15, 2024, 7:53 AM Reply Quote 0
        • B Offline
          Bimtronic @sdetweil
          last edited by Dec 15, 2024, 7:53 AM

          @sdetweil

          I disabled all modules, same errors.
          Disabled all but not the “alert”-module, same errors.

          I dont think is from the config, maybe the node.js file-system that is messed up.

          How do i uninstall MagicMirror and make a new clean install to start from scratch?

          S 1 Reply Last reply Dec 15, 2024, 12:47 PM Reply Quote 0
          • S Online
            sdetweil @Bimtronic
            last edited by sdetweil Dec 15, 2024, 12:48 PM Dec 15, 2024, 12:47 PM

            @Bimtronic use my backup/restore scripts yo save your MagicMirror setup
            https://github.com/sdetweil/MagicMirror-backup-restore

            then you can rename/delete the MagicMirror folder
            and use my install script
            see https://github.com/sdetweil/MagicMirror_scripts

            and then use restore to put the MagicMirror configuration back

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • 1
            • 2
            • 1 / 2
            1 / 2
            • First post
              16/16
              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