<?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[Syntax Errors Stopping MM from Loading...]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Recently my Magic Mirror wouldn’t load, just a black screen. Absolutely nothing had changed in the config or the setup.  I appreciate it’s an outdated version! Has anyone any idea what might be causing this? Virtual brownie points for any pointers.</p>
<blockquote>
<p dir="auto">magicmirror@2.1.1 start /home/pi/MagicMirror<br />
sh <a href="http://run-start.sh" target="_blank" rel="noopener noreferrer nofollow ugc">run-start.sh</a></p>
</blockquote>
<p dir="auto">Starting MagicMirror: v2.1.1<br />
Loading config …<br />
Loading module helpers …<br />
No helper found for module: alert.<br />
No helper found for module: clock.<br />
No helper found for module: currentweather.<br />
No helper found for module: weatherforecast.<br />
WARNING! Could not validate config file. Please correct syntax errors. Starting with default configuration.<br />
Loading module helpers …<br />
No helper found for module: alert.<br />
No helper found for module: clock.<br />
No helper found for module: currentweather.<br />
No helper found for module: weatherforecast.<br />
App threw an error during load<br />
/home/pi/MagicMirror/modules/node_modules/form-data/lib/form_data.js:225<br />
filename = path.norm!lize(options.fIlepath).replace(/\/g, ‘/’);<br />
^<br />
SyntaxError: Unexpected token !<br />
at Object.exports.runInThisContext (vm.js:78:16)<br />
at Module._compile (module.js:543:28)<br />
at Object.Module._extensions…js (module.js:580:10)<br />
at Module.load (module.js:488:32)<br />
at tryModuleLoad (module.js:447:12)<br />
at Function.Module._load (module.js:439:3)<br />
at Module.require (module.js:498:17)<br />
at require (internal/module.js:20:19)<br />
at Object. (/home/pi/MagicMirror/modules/node_modules/request/request.js:17:16)<br />
at Object. (/home/pi/MagicMirror/modules/node_modules/request/request.js:1554:3)<br />
Whoops! There was an uncaught exception…<br />
/home/pi/MagicMirror/modules/node_modules/form-data/lib/form_data.js:225<br />
filename = path.norm!lize(options.fIlepath).replace(/\/g, ‘/’);<br />
^<br />
SyntaxError: Unexpected token !<br />
at Object.exports.runInThisContext (vm.js:78:16)<br />
at Module._compile (module.js:543:28)<br />
at Object.Module._extensions…js (module.js:580:10)<br />
at Module.load (module.js:488:32)<br />
at tryModuleLoad (module.js:447:12)<br />
at Function.Module._load (module.js:439:3)<br />
at Module.require (module.js:498:17)<br />
at require (internal/module.js:20:19)<br />
at Object. (/home/pi/MagicMirror/modules/node_modules/request/request.js:17:16)<br />
at Object. (/home/pi/MagicMirror/modules/node_modules/request/request.js:1554:3)<br />
MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?<br />
If you think this really is an issue, please open an issue on GitHub: <a href="https://github.com/MichMich/MagicMirror/issues" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/MichMich/MagicMirror/issues</a><br />
Launching application.</p>
]]></description><link>https://forum.magicmirror.builders/topic/12502/syntax-errors-stopping-mm-from-loading</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 09:16:49 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/12502.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 05 Apr 2020 16:35:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Syntax Errors Stopping MM from Loading... on Sun, 05 Apr 2020 19:17:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/oliver_tooth" aria-label="Profile: Oliver_Tooth">@<bdi>Oliver_Tooth</bdi></a> u may have to start over… depends on what may be damaged…  u don’t want to clone card<br />
copy MM folder, then delete each node_modules folder and each package-lock.json file</p>
<p dir="auto">then npm install starting with MM and each module with package.json file</p>
]]></description><link>https://forum.magicmirror.builders/post/72013</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/72013</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 05 Apr 2020 19:17:13 GMT</pubDate></item><item><title><![CDATA[Reply to Syntax Errors Stopping MM from Loading... on Sun, 05 Apr 2020 17:44:21 GMT]]></title><description><![CDATA[<p dir="auto">New card ordered for delivery tomorrow. I’ll copy everything across and see where that takes me. Will it be a straight clone, or will I need to do additional installs?</p>
]]></description><link>https://forum.magicmirror.builders/post/72012</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/72012</guid><dc:creator><![CDATA[Oliver_Tooth]]></dc:creator><pubDate>Sun, 05 Apr 2020 17:44:21 GMT</pubDate></item><item><title><![CDATA[Reply to Syntax Errors Stopping MM from Loading... on Sun, 05 Apr 2020 17:36:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/oliver_tooth" aria-label="Profile: Oliver_Tooth">@<bdi>Oliver_Tooth</bdi></a> I think so…</p>
<p dir="auto">i looked at the code and its ok</p>
<pre><code>    filename = path.normalize(options.filepath).replace(/\\/g, '/');
</code></pre>
<p dir="auto">so, there is some data corruption there</p>
<p dir="auto">sd cards have only so long a life… the bits are write once… and so they keep getting used and marked used, til the card runs out</p>
]]></description><link>https://forum.magicmirror.builders/post/72009</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/72009</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 05 Apr 2020 17:36:25 GMT</pubDate></item><item><title><![CDATA[Reply to Syntax Errors Stopping MM from Loading... on Sun, 05 Apr 2020 17:32:11 GMT]]></title><description><![CDATA[<p dir="auto">I’ve given this ago, and the error still reports the same. Would a new SD card fix this problem?</p>
]]></description><link>https://forum.magicmirror.builders/post/72008</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/72008</guid><dc:creator><![CDATA[Oliver_Tooth]]></dc:creator><pubDate>Sun, 05 Apr 2020 17:32:11 GMT</pubDate></item><item><title><![CDATA[Reply to Syntax Errors Stopping MM from Loading... on Sun, 05 Apr 2020 16:45:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/oliver_tooth" aria-label="Profile: Oliver_Tooth">@<bdi>Oliver_Tooth</bdi></a> said in <a href="/post/72003">Syntax Errors Stopping MM from Loading...</a>:</p>
<blockquote>
<p dir="auto">/home/pi/MagicMirror/modules/node_modules/form-data/lib/form_data.js:225<br />
filename = path.norm!lize(options.fIlepath).replace(//g, ‘/’);</p>
</blockquote>
<p dir="auto">Absolutely nothing had changed in the config or the setup</p>
<p dir="auto">ok, this looks troublesome…</p>
<p dir="auto">I think this is starting to indicate a failing SD card… so, make plans…</p>
<p dir="auto">‘maybe’ we can  work around it… maybe</p>
<p dir="auto">do</p>
<pre><code>cd ~/magicMirror
rm -rf node_modules
npm install --only=prod
</code></pre>
<p dir="auto">then try to restart…</p>
]]></description><link>https://forum.magicmirror.builders/post/72004</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/72004</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 05 Apr 2020 16:45:53 GMT</pubDate></item></channel></rss>