<?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[Obj.constructor is not a function]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">I have programmed a new module and get this error message in the browser:</p>
<pre><code>class.js:79 Uncaught TypeError: obj.constructor is not a function
    at cloneObject (class.js:79)
    at cloneObject (class.js:81)
    at Function.Module.create (module.js:435)
    at afterLoad (loader.js:122)
    at loader.js:137
    at HTMLScriptElement.script.onload (loader.js:184)
</code></pre>
<p dir="auto">This comes up directly after</p>
<pre><code>Module registered: MMM-testmodule
</code></pre>
<p dir="auto">The mirror then does not start.<br />
When I disable the module in the config, the message vanishes and the mirror starts properly.</p>
<p dir="auto">Never seen that before. Does anybody know where this comes from?</p>
<p dir="auto">Config entry:</p>
<pre><code>    {
        //disabled: true,
        module: "MMM-testmodule",
        position: 'top_left',
        config: {
	},
    },
</code></pre>
]]></description><link>https://forum.magicmirror.builders/topic/11649/obj-constructor-is-not-a-function</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Jul 2026 08:50:31 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/11649.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 22 Nov 2019 08:25:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Obj.constructor is not a function on Fri, 22 Nov 2019 12:42:10 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> I have found the problem.</p>
<p dir="auto">I had implemented an emtpy Object in the main module:</p>
<pre><code>Module.register("MMM-testmodule", {

  defaults: {
    ...    
  },

  loading: true,
  fetchedData: Object.create(null),
</code></pre>
<p dir="auto">It didn’t like the Object for some reason.<br />
But thanks Sam for offering help! You’re a real lighthouse around here!</p>
]]></description><link>https://forum.magicmirror.builders/post/64910</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/64910</guid><dc:creator><![CDATA[lavolp3]]></dc:creator><pubDate>Fri, 22 Nov 2019 12:42:10 GMT</pubDate></item><item><title><![CDATA[Reply to Obj.constructor is not a function on Fri, 22 Nov 2019 11:40:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lavolp3" aria-label="Profile: lavolp3">@<bdi>lavolp3</bdi></a> no… can u post your module on gh so I can download it?</p>
<p dir="auto">I created a small sample, using same names… it loaded ok…</p>
<p dir="auto">but the js file has no useful content…</p>
]]></description><link>https://forum.magicmirror.builders/post/64906</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/64906</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 22 Nov 2019 11:40:50 GMT</pubDate></item></channel></rss>