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

UnhandledPromiseRejectionWarning: Error

Scheduled Pinned Locked Moved Solved Troubleshooting
6 Posts 2 Posters 380 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.
  • P Offline
    payolemo
    last edited by Dec 19, 2023, 4:29 PM

    Hi there folks! I need some help on Magic Mirror execution, after configuring and adding the MMM-Awesome-Alexa module I’m trying to execute npm run start but the terminal displays the following error:

    [19.12.2023 10:02.48.027] [ERROR] (node:8028) UnhandledPromiseRejectionWarning: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './Rx' is not defined by "exports" in /home/payolemo/MagicMirror/node_modules/rxjs/package.json
       at new NodeError (node:internal/errors:399:5)
       at exportsNotFound (node:internal/modules/esm/resolve:361:10)
       at packageExportsResolve (node:internal/modules/esm/resolve:697:9)
       at resolveExports (node:internal/modules/cjs/loader:574:36)
       at Function._findPath (node:internal/modules/cjs/loader:643:31)
       at node:internal/modules/cjs/loader:1070:27
       at Function.<anonymous> (node:electron/js2c/browser_init:2:117419)
       at Module._resolveFilename (/home/payolemo/MagicMirror/node_modules/module-alias/index.js:49:29)
       at node:internal/modules/cjs/loader:929:27
       at Function._load (node:electron/js2c/asar_bundle:2:13327)
       at Module.require (node:internal/modules/cjs/loader:1150:19)
       at require (node:internal/modules/cjs/helpers:110:18)
       at Object.<anonymous> (/home/payolemo/MagicMirror/modules/MMM-awesome-alexa/node_helper.js:1:1128)
       at r (/home/payolemo/MagicMirror/modules/MMM-awesome-alexa/node_helper.js:1:124)
       at Object.<anonymous> (/home/payolemo/MagicMirror/modules/MMM-awesome-alexa/node_helper.js:1:5872)
       at r (/home/payolemo/MagicMirror/modules/MMM-awesome-alexa/node_helper.js:1:124)
    (Use `electron --trace-warnings ...` to show where the warning was created)
    [19.12.2023 10:02.48.029] [ERROR] (node:8028) 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)
    
    

    I did the following:
    I deleted the node_modules directory with rm -rf in ~/MagicMirror and I also did npm i
    I also rexecuted npm rebuild and npm install --save-dev @electron/rebuild && ./node_modules/.bin/electron-rebuild
    Non of these worked for me.

    S 1 Reply Last reply Dec 20, 2023, 4:59 AM Reply Quote 0
    • S Offline
      sdetweil @payolemo
      last edited by Dec 20, 2023, 7:00 PM

      @payolemo see this post about Alexa
      https://forum.magicmirror.builders/topic/16069/alexa-implementations-now-more-difficult-and-some-features-will-stop-working

      MMM-GoggleAssitant (by bugsounet) is the only other choice. note that he does support on his own forums

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @payolemo
        last edited by sdetweil Dec 20, 2023, 4:59 AM Dec 20, 2023, 4:59 AM

        @payolemo what version of mm are you using?

        cd ~/MagicMirror 
        grep version package.json
        

        I don’t see the use of rx.js in mm…

        where are you issuing the

         npm run start 
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        P 1 Reply Last reply Dec 20, 2023, 3:25 PM Reply Quote 0
        • P Offline
          payolemo @sdetweil
          last edited by Dec 20, 2023, 3:25 PM

          @sdetweil said in UnhandledPromiseRejectionWarning: Error:

          grep version package.json

          where are you issuing the npm run start

          I’m running npm run start from ~/MagicMirror $

          MM version: 2.25.0

          I’m about to give up with MMM-Awesome-Alexa (U.U) , I did many things just to get the config generator cli working, I’m conscious the module is really outdated also I was reading about and seems that the alexa responds the first voice command only, I wonder if it worth the effort

          S 1 Reply Last reply Dec 20, 2023, 3:57 PM Reply Quote 0
          • S Offline
            sdetweil @payolemo
            last edited by Dec 20, 2023, 3:57 PM

            @payolemo thanks
            generally Amazon has made accessing thru Alexa very difficult in the last 18 months.

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            P 1 Reply Last reply Dec 20, 2023, 6:51 PM Reply Quote 0
            • P Offline
              payolemo @sdetweil
              last edited by Dec 20, 2023, 6:51 PM

              @sdetweil Thank you, marking this post as resolved, maybe I should open a post to discuss or/and debate about the use of alexa in MM and alternatives as MMM-GoogleAssistant.

              Again, thanks for your help!

              S 1 Reply Last reply Dec 20, 2023, 7:00 PM Reply Quote 0
              • S Offline
                sdetweil @payolemo
                last edited by Dec 20, 2023, 7:00 PM

                @payolemo see this post about Alexa
                https://forum.magicmirror.builders/topic/16069/alexa-implementations-now-more-difficult-and-some-features-will-stop-working

                MMM-GoggleAssitant (by bugsounet) is the only other choice. note that he does support on his own forums

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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