<?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[ReferenceError: fetch is not defined]]></title><description><![CDATA[<p dir="auto">Could not find anything helpfull on the web, of this forum so here goes.</p>
<p dir="auto">MM was running fine until latest update. Weather stopped working.,<br />
Fixed it by using the sample settings, they changed from openweather to openmeto. ok, no prob.</p>
<p dir="auto">But now, dont ask, calender and newsfeed keep loading.<br />
I tried;</p>
<ul>
<li>git pull in Magic mirror folder</li>
<li>ran npm install node-fetch@2 in Magic mirror and calender module folder</li>
<li>ran sdetweil repair script (</li>
<li>updated Pi3, running bookwork</li>
</ul>
<p dir="auto">the log shows this<br />
0|mm  | [2024-10-18 14:59:19.435] [ERROR] Whoops! There was an uncaught exception…<br />
0|mm  | [2024-10-18 14:59:19.448] [ERROR] ReferenceError: fetch is not defined<br />
0|mm  |     at fetchCalendar (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:51:3)<br />
0|mm  |     at CalendarFetcher.startFetch (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:96:3)<br />
0|mm  |     at Class.createFetcher (/home/pi/MagicMirror/modules/default/calendar/node_helper.js:79:11)<br />
0|mm  |     at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/default/calendar/node_helper.js:15:9)<br />
0|mm  |     at Socket. (/home/pi/MagicMirror/js/node_helper.js:91:10)<br />
0|mm  |     at Socket.onevent (/home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:462:26)<br />
0|mm  |     at Socket._onpacket (/home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:430:22)<br />
0|mm  |     at /home/pi/MagicMirror/node_modules/socket.io/dist/client.js:214:24<br />
0|mm  |     at process.processTicksAndRejections (node:internal/process/task_queues:78:11)</p>
<p dir="auto">Strange, but have Hyper-v debian running with MM and no problem there</p>
<p dir="auto">Anyone?</p>
]]></description><link>https://forum.magicmirror.builders/topic/19056/referenceerror-fetch-is-not-defined</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 21:54:01 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/19056.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 18 Oct 2024 13:09:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ReferenceError: fetch is not defined on Sun, 20 Oct 2024 16:15:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/red1470" aria-label="Profile: ReD1470">@<bdi>ReD1470</bdi></a> awesome. glad it’s working</p>
]]></description><link>https://forum.magicmirror.builders/post/120691</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120691</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 20 Oct 2024 16:15:33 GMT</pubDate></item><item><title><![CDATA[Reply to ReferenceError: fetch is not defined on Sun, 20 Oct 2024 15:56:36 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></p>
<p dir="auto">WOW that did alot… i think<br />
but you sure now your stuf… problem fixed. I got my calender back<br />
TNX!</p>
<p dir="auto">here are the last lines of the log<br />
----------------------------------<br />
npm WARN deprecated har-validator@5.1.5: this library is no longer supported<br />
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See <a href="https://v8.dev/blog/math-random" target="_blank" rel="noopener noreferrer nofollow ugc">https://v8.dev/blog/math-random</a> for details.<br />
npm WARN deprecated request@2.88.2: request has been deprecated, see <a href="https://github.com/request/request/issues/3142" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/request/request/issues/3142</a></p>
<p dir="auto">added 48 packages, and audited 49 packages in 8s</p>
<p dir="auto">2 packages are looking for funding<br />
run <code>npm fund</code> for details</p>
<p dir="auto">2 moderate severity vulnerabilities</p>
<p dir="auto">Some issues need review, and may require choosing<br />
a different dependency.</p>
<p dir="auto">Run <code>npm audit</code> for details.</p>
<pre><code>processing complete for module MMM-SystemStats
</code></pre>
<p dir="auto">restoring custom.css<br />
removing git alias<br />
Upgrade ended - Sun Oct 20 17:53:11 CEST 2024</p>
]]></description><link>https://forum.magicmirror.builders/post/120690</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120690</guid><dc:creator><![CDATA[ReD1470]]></dc:creator><pubDate>Sun, 20 Oct 2024 15:56:36 GMT</pubDate></item><item><title><![CDATA[Reply to ReferenceError: fetch is not defined on Sun, 20 Oct 2024 15:41:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/red1470" aria-label="Profile: ReD1470">@<bdi>ReD1470</bdi></a> note… IF you tried to do it manually, my script will abort if you try to auto upgrade again…<br />
(I will not install updates over already updated)</p>
<p dir="auto">so you have to change apply to force, to FORCE the scrip to do it anyhow</p>
<p dir="auto">don’t need the whole upgrade log just the last 20 lines</p>
]]></description><link>https://forum.magicmirror.builders/post/120689</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120689</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 20 Oct 2024 15:41:05 GMT</pubDate></item><item><title><![CDATA[Reply to ReferenceError: fetch is not defined on Sun, 20 Oct 2024 15:34:58 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></p>
<p dir="auto">Yes node -v<br />
v20.9.0</p>
<p dir="auto">Yes the install script was applied with apply<br />
bash -c  “$(curl -sL <a href="https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh" target="_blank" rel="noopener noreferrer nofollow ugc">https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh</a>)” apply</p>
<p dir="auto">If you want i can try and zip and post the upgrade.log</p>
]]></description><link>https://forum.magicmirror.builders/post/120688</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120688</guid><dc:creator><![CDATA[ReD1470]]></dc:creator><pubDate>Sun, 20 Oct 2024 15:34:58 GMT</pubDate></item><item><title><![CDATA[Reply to ReferenceError: fetch is not defined on Fri, 18 Oct 2024 13:34:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/red1470" aria-label="Profile: ReD1470">@<bdi>ReD1470</bdi></a> what nodejs version are you running?</p>
<p dir="auto">node -v</p>
<p dir="auto">you need 20.9.0 or above, but not any v 21</p>
<p dir="auto">the npm install should fail on v 2.29.0 as it checks the version too</p>
<p dir="auto">my upgrade script is 2 part right?<br />
without any parameters its it just a test, no changes<br />
with a parameter it will DO the upgrade, nodejs too</p>
]]></description><link>https://forum.magicmirror.builders/post/120648</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120648</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 18 Oct 2024 13:34:17 GMT</pubDate></item></channel></rss>