<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[UnhandledPromiseRejectionWarning: Error: Cannot find module 'request']]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">After updating to latest MagicMirror I have issues with “MMM-CalendarWeek”.<br />
From my terminal when running:</p>
<pre><code>&gt; magicmirror@2.23.0 start
&gt; DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js

[12.06.2023 18:40.30.551] [LOG]   Starting MagicMirror: v2.23.0
[12.06.2023 18:40.30.564] [LOG]   Loading config ...
[12.06.2023 18:40.30.580] [DEBUG] config template file not exists, no envsubst
[12.06.2023 18:40.30.602] [LOG]   Loading module helpers ...
[12.06.2023 18:40.30.604] [LOG]   No helper found for module: clock.
[12.06.2023 18:40.30.606] [LOG]   No helper found for module: weather.
[12.06.2023 18:40.30.635] [ERROR] (node:6065) UnhandledPromiseRejectionWarning: Error: Cannot find module 'request'
Require stack:
- /home/pi/MagicMirror/modules/MMM-CalendarWeek/vendor/ical.js/node-ical.js
- /home/pi/MagicMirror/modules/MMM-CalendarWeek/vendor/ical.js/index.js
- /home/pi/MagicMirror/modules/MMM-CalendarWeek/calendarfetcher.js
- /home/pi/MagicMirror/modules/MMM-CalendarWeek/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:963:15)
    at n._resolveFilename (node:electron/js2c/browser_init:2:109751)
    at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
    at Module._load (node:internal/modules/cjs/loader:811:27)
    at f._load (node:electron/js2c/asar_bundle:2:13330)
    at Module.require (node:internal/modules/cjs/loader:1035:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.&lt;anonymous&gt; (/home/pi/MagicMirror/modules/MMM-CalendarWeek/vendor/ical.js/node-ical.js:2:15)
    at Module._compile (node:internal/modules/cjs/loader:1141:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1196:10)
    at Module.load (node:internal/modules/cjs/loader:1011:32)
    at Module._load (node:internal/modules/cjs/loader:846:12)
    at f._load (node:electron/js2c/asar_bundle:2:13330)
    at Module.require (node:internal/modules/cjs/loader:1035:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.&lt;anonymous&gt; (/home/pi/MagicMirror/modules/MMM-CalendarWeek/vendor/ical.js/index.js:3:12)
(Use `electron --trace-warnings ...` to show where the warning was created)
[12.06.2023 18:40.30.638] [ERROR] (node:6065) 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: 2)
[12.06.2023 18:40.30.896] [LOG]   Launching application.
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: kan inte öppna delad objektfil: Åtkomst nekas (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: kan inte öppna delad objektfil: Åtkomst nekas (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
failed to load swrast driver

</code></pre>
<p dir="auto">What am I doing wrong?</p>
]]></description><link>https://forum.magicmirror.builders/topic/17842/unhandledpromiserejectionwarning-error-cannot-find-module-request</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 16:42:45 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/17842.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 12 Jun 2023 17:57:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to UnhandledPromiseRejectionWarning: Error: Cannot find module 'request' on Mon, 12 Jun 2023 18:01:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/maxaron" aria-label="Profile: maxaron">@<bdi>maxaron</bdi></a> see <a href="https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later">https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later</a></p>
]]></description><link>https://forum.magicmirror.builders/post/109787</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/109787</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 12 Jun 2023 18:01:28 GMT</pubDate></item><item><title><![CDATA[Reply to UnhandledPromiseRejectionWarning: Error: Cannot find module 'request' on Mon, 12 Jun 2023 18:25:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> You made my day / night! Thanks!</p>
]]></description><link>https://forum.magicmirror.builders/post/109791</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/109791</guid><dc:creator><![CDATA[maxaron]]></dc:creator><pubDate>Mon, 12 Jun 2023 18:25:20 GMT</pubDate></item><item><title><![CDATA[Reply to UnhandledPromiseRejectionWarning: Error: Cannot find module 'request' on Mon, 12 Jun 2023 18:01:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/maxaron" aria-label="Profile: maxaron">@<bdi>maxaron</bdi></a> see <a href="https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later">https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later</a></p>
]]></description><link>https://forum.magicmirror.builders/post/109787</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/109787</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 12 Jun 2023 18:01:28 GMT</pubDate></item></channel></rss>