• 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 610 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.
  • B Offline
    Bimtronic
    last edited by Dec 4, 2024, 8:15 PM

    I got this after i installed some modules and updated packs.

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

    [2024-12-04 21:05:31.188] [ERROR] App threw an error during load
    [2024-12-04 21:05:31.196] [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)

    How can i solve this?

    S 1 Reply Last reply Dec 4, 2024, 8:20 PM Reply Quote 0
    • S Offline
      sdetweil @Bimtronic
      last edited by Dec 4, 2024, 8:20 PM

      @Bimtronic the npm install did not complete

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      B 1 Reply Last reply Dec 4, 2024, 8:30 PM Reply Quote 0
      • B Offline
        Bimtronic @sdetweil
        last edited by Dec 4, 2024, 8:30 PM

        @sdetweil

        I just ran “npm install” but it didnt solve this.

        Did you mean a package/module?

        mt@mt:~ $ npm install

        up to date, audited 79 packages in 21s

        22 packages are looking for funding
        run npm fund for details

        found 0 vulnerabilities

        S 1 Reply Last reply Dec 4, 2024, 8:54 PM Reply Quote 0
        • S Offline
          sdetweil @Bimtronic
          last edited by Dec 4, 2024, 8:54 PM

          @Bimtronic in the MagicMirror folder

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          B 1 Reply Last reply Dec 5, 2024, 6:38 AM Reply Quote 1
          • B Offline
            Bimtronic @sdetweil
            last edited by Dec 5, 2024, 6:38 AM

            @sdetweil

            I tried to run a new “npm install” in the MM-folder, but i still have the same errors.

            Is it advised to delete and reinstall Magic Mirror completely?

            S 1 Reply Last reply Dec 5, 2024, 12:51 PM Reply Quote 0
            • S Offline
              sdetweil @Bimtronic
              last edited by Dec 5, 2024, 12:51 PM

              @Bimtronic can you show me the output of the npm install

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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

                @sdetweil

                mt@mt:~/MagicMirror $ npm install

                magicmirror@2.29.0 postinstall
                npm run install-vendor && npm run install-fonts && echo "MagicMirror² installation finished successfully!
                "

                magicmirror@2.29.0 install-vendor
                echo "Installing vendor files …
                " && cd vendor && npm install --loglevel=error --no-audit --no-fund --no-update-notifier

                Installing vendor files …

                up to date in 3s

                magicmirror@2.29.0 install-fonts
                echo "Installing fonts …
                " && cd fonts && npm install --loglevel=error --no-audit --no-fund --no-update-notifier

                Installing fonts …

                up to date in 3s
                MagicMirror² installation finished successfully!

                magicmirror@2.29.0 prepare
                [ -f node_modules/.bin/husky ] && husky || echo no husky installed.

                up to date in 56s

                208 packages are looking for funding
                run npm fund for details
                npm notice
                npm notice New patch version of npm available! 10.9.0 -> 10.9.2
                npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.9.2
                npm notice To update run: npm install -g npm@10.9.2
                npm notice

                S 1 Reply Last reply Dec 9, 2024, 12:54 PM Reply Quote 0
                • S Offline
                  sdetweil @Bimtronic
                  last edited by Dec 9, 2024, 12:54 PM

                  @Bimtronic ok and now, in the MagicMirror folder
                  The output of npm start

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  B 1 Reply Last reply Dec 9, 2024, 2:23 PM Reply Quote 0
                  • B Offline
                    Bimtronic @sdetweil
                    last edited by Dec 9, 2024, 2:23 PM

                    @sdetweil

                    mt@mt:~/MagicMirror $ npm start

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

                    [2024-12-09 15:22:44.863] [ERROR] App threw an error during load
                    [2024-12-09 15:22:44.871] [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 9, 2024, 2:27 PM Reply Quote 0
                    • S Offline
                      sdetweil @Bimtronic
                      last edited by Dec 9, 2024, 2:27 PM

                      @Bimtronic can you show me the config.js, xxx out any apikeys or private info

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      B 1 Reply Last reply Dec 10, 2024, 6:45 AM Reply Quote 1
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        1/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