<?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["dom" variable is undefined]]></title><description><![CDATA[<p dir="auto">I get a console error on start up as follows:</p>
<p dir="auto">Uncaught TypeError: Cannot read property ‘appendChild’ of undefined. Meaning the dom variable is undefined.</p>
<p dir="auto">The error points to main.js line 38:</p>
<pre><code>var dom = document.createElement("div");
dom.id = module.identifier;
dom.className = module.name;

if (typeof module.data.classes === "string") {
     dom.className = "module " + dom.className + " " + module.data.classes;
}

dom.opacity = 0;
wrapper.appendChild(dom);
</code></pre>
<p dir="auto">Everything still works fine, including the custom modules I’ve built, which is actually what drove me to the forum. Since everything works, I’m not actually sure how to debug. Wanted to see if anyone else had this problem or maybe had an easy fix for a fellow perfectionist.</p>
]]></description><link>https://forum.magicmirror.builders/topic/1463/dom-variable-is-undefined</link><generator>RSS for Node</generator><lastBuildDate>Thu, 10 Sep 2026 13:53:55 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/1463.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 19 Jan 2017 17:44:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to "dom" variable is undefined on Thu, 19 Jan 2017 18:04:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/morozgrafix" aria-label="Profile: morozgrafix">@<bdi>morozgrafix</bdi></a> Spot on, I do my dev on my MacBook and test in Chrome. I bet that’s what’s messing with it.</p>
]]></description><link>https://forum.magicmirror.builders/post/11662</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/11662</guid><dc:creator><![CDATA[jeremytripp]]></dc:creator><pubDate>Thu, 19 Jan 2017 18:04:59 GMT</pubDate></item><item><title><![CDATA[Reply to "dom" variable is undefined on Thu, 19 Jan 2017 17:53:44 GMT]]></title><description><![CDATA[<p dir="auto">Are you running electron app on RasPi or testing in a browser? I had this problem in Chrome when one of the extensions that I had enabled was interfering with MM js</p>
]]></description><link>https://forum.magicmirror.builders/post/11661</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/11661</guid><dc:creator><![CDATA[morozgrafix]]></dc:creator><pubDate>Thu, 19 Jan 2017 17:53:44 GMT</pubDate></item></channel></rss>