Read the statement by Michael Teeuw here.
UnhandledPromiseRejectionWarning: Error
-
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 withrm -rf
in~/MagicMirror
and I also didnpm i
I also rexecutednpm rebuild
andnpm install --save-dev @electron/rebuild && ./node_modules/.bin/electron-rebuild
Non of these worked for me. -
@payolemo see this post about Alexa
https://forum.magicmirror.builders/topic/16069/alexa-implementations-now-more-difficult-and-some-features-will-stop-workingMMM-GoggleAssitant (by bugsounet) is the only other choice. note that he does support on his own forums
-
@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
-
@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
-
@payolemo thanks
generally Amazon has made accessing thru Alexa very difficult in the last 18 months. -
@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!
-
@payolemo see this post about Alexa
https://forum.magicmirror.builders/topic/16069/alexa-implementations-now-more-difficult-and-some-features-will-stop-workingMMM-GoggleAssitant (by bugsounet) is the only other choice. note that he does support on his own forums