Note that there are some explanatory texts on larger screens.

plurals
  1. POtypes[config.xtype || defaultType] is not a constructor (ExtJs 3.3)
    primarykey
    data
    text
    <p>I recently inherited a big ExtJs application and for the life of me I can't seem to find where my issue is. The error that FireBug is throwing is.. </p> <p>The error</p> <blockquote> <p>types[config.xtype || defaultType] is not a constructor<br /></p> </blockquote> <p>The code</p> <blockquote> <p>create : function(config, defaultType){<BR /> &nbsp;&nbsp;&nbsp;&nbsp; return config.render ? config : new typesconfig.xtype || defaultType; <br /> }</p> </blockquote> <p>The above error is in ext-all-debug-w-comments.</p> <p>A quick check of "defaultType" shows it to be "panel" and I know that "is not a constructor" errors are almost always indicative that something hasn't loaded yet. Problem is that I can't seem to solve this one. </p> <p>I am assuming that Ext.Panel is the problem here but I was under the impression that it loaded with </p> <pre><code>&lt;script src="/ext-3.3/adapter/ext/ext-base.js" type="text/javascript"&gt; </code></pre> <p>that I have in the HEAD.</p> <p>It would also be helpful if I knew what was calling the "create". I kid you not, this is one massive sized application.</p> <p>The includes for ExtJs are below.... (they are in the BODY)</p> <pre><code>&lt;script type="text/javascript" src="/ext-3.3/ext-all-debug-w-comments.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/ext/ux/Spinner.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/ext/ux/form/SpinnerField.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/ext/layout/CardLayout-crossfade.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/plugin/DragDropTabs.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/ext/ux/Lightbox.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/ext/ux/NoLayoutCollapsed.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/ContractionsStore.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/text/Render.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/selection/SelectionHelper.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/core/StationsStore.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/LeftColumn.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/text/Config.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/text/Container.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/text/TextColumn.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/text/TextWx.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/text/AbsWxAero.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/text/Metar.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/text/MetarSettings.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/text/TafSettings.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/text/TextWxSettings.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/text/Taf.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/text/ForecastRegions.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/chart/Selector.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/chart/Container.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/chart/Chart.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/chart/ChartTBarButton.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/chart/LegendPanel.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/chart/SingleSite.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/chart/AddsAirmetChart.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/selection/Selector.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/ChartCardPanel.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/sponsored/content.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/sponsored/SponsorPanel.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/chart/charts-tree.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/initStores.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="src/wx/init.js"&gt;&lt;/script&gt; </code></pre> <p>Any ideas? JW</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload