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.

    MMM-UKTide - error on load

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    2 Posts 2 Posters 423 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.
    • O Offline
      olitills
      last edited by

      New to Magic Mirrors, so feeling things out at this stage.

      After installing https://github.com/Captsi/MMM-UKTide on a fresh RPi 4 Magic Mirror setup I encounter the following error, which prevents the mirror from loading (whereas if I remove this module from the config.js the mirror loads just fine.

      Any suggestions?

      pi@minecraft:~/MagicMirror $ npm start
      > 
      > > magicmirror@2.24.0 start
      > > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      > 
      > [27.08.2023 16:24.34.781] [LOG]   Starting MagicMirror: v2.24.0
      > [27.08.2023 16:24.34.789] [LOG]   Loading config ...
      > [27.08.2023 16:24.34.792] [DEBUG] config template file not exists, no envsubst
      > [27.08.2023 16:24.34.798] [LOG]   Loading module helpers ...
      > [27.08.2023 16:24.34.800] [LOG]   No helper found for module: alert.
      > [27.08.2023 16:24.34.824] [LOG]   Initializing new module helper ...
      > [27.08.2023 16:24.34.825] [LOG]   Module helper loaded: updatenotification
      > [27.08.2023 16:24.35.142] [LOG]   Initializing new module helper ...
      > [27.08.2023 16:24.35.143] [LOG]   Module helper loaded: calendar
      > [27.08.2023 16:24.35.145] [LOG]   No helper found for module: clock.
      > [27.08.2023 16:24.35.151] [ERROR] (node:6501) UnhandledPromiseRejectionWarning: Error: Cannot find module 'request'
      > Require stack:
      > - /home/pi/MagicMirror/modules/MMM-UKTide/node_helper.js
      > - /home/pi/MagicMirror/js/app.js
      > - /home/pi/MagicMirror/js/electron.js
      > - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
      > - 
      >     at Module._resolveFilename (node:internal/modules/cjs/loader:1082:15)
      >     at n._resolveFilename (node:electron/js2c/browser_init:2:117457)
      >     at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
      >     at Module._load (node:internal/modules/cjs/loader:927:27)
      >     at f._load (node:electron/js2c/asar_bundle:2:13330)
      >     at Module.require (node:internal/modules/cjs/loader:1148:19)
      >     at require (node:internal/modules/cjs/helpers:110:18)
      >     at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-UKTide/node_helper.js:12:15)
      >     at Module._compile (node:internal/modules/cjs/loader:1269:14)
      >     at Module._extensions..js (node:internal/modules/cjs/loader:1324:10)
      >     at Module.load (node:internal/modules/cjs/loader:1124:32)
      >     at Module._load (node:internal/modules/cjs/loader:965:12)
      >     at f._load (node:electron/js2c/asar_bundle:2:13330)
      >     at Module.require (node:internal/modules/cjs/loader:1148:19)
      >     at require (node:internal/modules/cjs/helpers:110:18)
      >     at loadModule (/home/pi/MagicMirror/js/app.js:180:19)
      > (Use `electron --trace-warnings ...` to show where the warning was created)
      > [27.08.2023 16:24.35.151] [ERROR] (node:6501) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
      > 
      
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @olitills
        last edited by

        @olitills said in MMM-UKTide - error on load:

        ) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘request’

        see
        https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later

        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