<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: TypeError: clazz is not a constructor, not sure what the issue is? in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/typeerror-clazz-is-not-a-constructor-not-sure-what/m-p/825718#M7792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks I will take a look at those 2 files for syntax&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Mar 2019 14:33:17 GMT</pubDate>
    <dc:creator>JamesHone</dc:creator>
    <dc:date>2019-03-10T14:33:17Z</dc:date>
    <item>
      <title>TypeError: clazz is not a constructor, not sure what the issue is?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/typeerror-clazz-is-not-a-constructor-not-sure-what/m-p/825716#M7790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Im trying to adjust the example ShowVertex feature action to suite my porposes&amp;nbsp; by adding another feature action to the demo widget and send the name and ID of a feature to the widget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have , heres my feature action code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define([&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;'dojo/_base/declare',&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;'jimu/BaseFeatureAction',&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;'jimu/WidgetManager'], &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;function(declare, BaseFeatureAction, WidgetManager){&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var clazz = declare(BaseFeatureAction, {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;iconFormat: 'png',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;isFeatureSupported: function(featureSet){&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return featureSet.features.length &amp;gt; 0 &amp;amp;&amp;amp; featureSet.features[0].geometry.type !== 'point';&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;onExecute: function(featureSet){&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;WidgetManager.getInstance().triggerWidgetOpen(this.widgetId)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.then(function(myWidget) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var id&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var name&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;featureSet.features.forEach(function(f){&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;id = f.id&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;name = f.name&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;});&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;myWidget.AddtoSelected(name,id);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;});&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt; });&lt;BR /&gt; return clazz;&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Im getting a create widget error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when debuggin in chrome I get&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;init.js:115 TypeError: clazz is not a constructor&lt;BR /&gt; at Object.createWidget (WidgetManager.js?wab_dv=2.11:321)&lt;BR /&gt; at Object.&amp;lt;anonymous&amp;gt; (WidgetManager.js?wab_dv=2.11:113)&lt;BR /&gt; at init.js:64&lt;BR /&gt; at l (init.js:108)&lt;BR /&gt; at e.then.b.then (init.js:111)&lt;BR /&gt; at Object.&amp;lt;anonymous&amp;gt; (WidgetManager.js?wab_dv=2.11:111)&lt;BR /&gt; at init.js:64&lt;BR /&gt; at l (init.js:108)&lt;BR /&gt; at b.extend.then.then.b.then (init.js:111)&lt;BR /&gt; at Object.loadWidget (WidgetManager.js?wab_dv=2.11:108) "TypeError: clazz is not a constructor&lt;BR /&gt; at Object.createWidget (https://l050736:3344/webappbuilder/apps/11/jimu.js/WidgetManager.js?wab_dv=2.11:321:16)&lt;BR /&gt; at Object.&amp;lt;anonymous&amp;gt; (https://l050736:3344/webappbuilder/apps/11/jimu.js/WidgetManager.js?wab_dv=2.11:113:35)&lt;BR /&gt; at https://js.arcgis.com/3.27/init.js:64:337&lt;BR /&gt; at l (https://js.arcgis.com/3.27/init.js:108:277)&lt;BR /&gt; at e.then.b.then (https://js.arcgis.com/3.27/init.js:111:152)&lt;BR /&gt; at Object.&amp;lt;anonymous&amp;gt; (https://l050736:3344/webappbuilder/apps/11/jimu.js/WidgetManager.js?wab_dv=2.11:111:47)&lt;BR /&gt; at https://js.arcgis.com/3.27/init.js:64:337&lt;BR /&gt; at l (https://js.arcgis.com/3.27/init.js:108:277)&lt;BR /&gt; at b.extend.then.then.b.then (https://js.arcgis.com/3.27/init.js:111:152)&lt;BR /&gt; at Object.loadWidget (https://l050736:3344/webappbuilder/apps/11/jimu.js/WidgetManager.js?wab_dv=2.11:108:12)&lt;BR /&gt; ----------------------------------------&lt;BR /&gt; rejected at Object.&amp;lt;anonymous&amp;gt; (https://l050736:3344/webappbuilder/apps/11/jimu.js/WidgetManager.js?wab_dv=2.11:126:21)&lt;BR /&gt; at https://js.arcgis.com/3.27/init.js:64:337&lt;BR /&gt; at l (https://js.arcgis.com/3.27/init.js:108:277)&lt;BR /&gt; at e.then.b.then (https://js.arcgis.com/3.27/init.js:111:152)&lt;BR /&gt; at Object.&amp;lt;anonymous&amp;gt; (https://l050736:3344/webappbuilder/apps/11/jimu.js/WidgetManager.js?wab_dv=2.11:111:47)&lt;BR /&gt; at https://js.arcgis.com/3.27/init.js:64:337&lt;BR /&gt; at l (https://js.arcgis.com/3.27/init.js:108:277)&lt;BR /&gt; at b.extend.then.then.b.then (https://js.arcgis.com/3.27/init.js:111:152)&lt;BR /&gt; at Object.loadWidget (https://l050736:3344/webappbuilder/apps/11/jimu.js/WidgetManager.js?wab_dv=2.11:108:12)&lt;BR /&gt; at Object.&amp;lt;anonymous&amp;gt; (https://l050736:3344/webappbuilder/apps/11/jimu.js/BaseWidgetPanel.js?wab_dv=2.11:76:28)&lt;BR /&gt; ----------------------------------------&lt;BR /&gt;Error&lt;BR /&gt; at Object.loadWidget (https://l050736:3344/webappbuilder/apps/11/jimu.js/WidgetManager.js?wab_dv=2.11:96:17)&lt;BR /&gt; at Object.&amp;lt;anonymous&amp;gt; (https://l050736:3344/webappbuilder/apps/11/jimu.js/BaseWidgetPanel.js?wab_dv=2.11:76:28)&lt;BR /&gt; at Object.forEach (https://js.arcgis.com/3.27/init.js:71:486)&lt;BR /&gt; at Object.loadAllWidgetsInOrder (https://l050736:3344/webappbuilder/apps/11/jimu.js/BaseWidgetPanel.js?wab_dv=2.11:66:13)&lt;BR /&gt; at Object.startup (https://l050736:3344/webappbuilder/apps/11/jimu.js/BaseWidgetPanel.js?wab_dv=2.11:55:12)&lt;BR /&gt; at Object.d (https://js.arcgis.com/3.27/init.js:198:400)&lt;BR /&gt; at Object.startup (https://l050736:3344/webappbuilder/apps/11/jimu.js/OnScreenWidgetPanel.js?wab_dv=2.11:67:14)&lt;BR /&gt; at Object.openPanel (https://l050736:3344/webappbuilder/apps/11/jimu.js/PanelManager.js?wab_dv=2.11:152:17)&lt;BR /&gt; at Object.&amp;lt;anonymous&amp;gt; (https://l050736:3344/webappbuilder/apps/11/jimu.js/PanelManager.js?wab_dv=2.11:93:16)&lt;BR /&gt; at &lt;A href="https://js.arcgis.com/3.27/init.js:64:337&amp;quot;"&gt;https://js.arcgis.com/3.27/init.js:64:337"&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As this error report doesnt mention any of my widget files Im rather confused on where to find the problem, Im assuming its in the feature action as thats where clazz is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone help point me in the right direction to resolve this error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2019 12:09:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/typeerror-clazz-is-not-a-constructor-not-sure-what/m-p/825716#M7790</guid>
      <dc:creator>JamesHone1</dc:creator>
      <dc:date>2019-03-07T12:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: clazz is not a constructor, not sure what the issue is?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/typeerror-clazz-is-not-a-constructor-not-sure-what/m-p/825717#M7791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Normally this means you have introduced a syntax error in your code, not closed a bracket, forgot a comma, etc. What does your mainifest.json look like? What does your Widget.js look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2019 16:36:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/typeerror-clazz-is-not-a-constructor-not-sure-what/m-p/825717#M7791</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-03-07T16:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: clazz is not a constructor, not sure what the issue is?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/typeerror-clazz-is-not-a-constructor-not-sure-what/m-p/825718#M7792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks I will take a look at those 2 files for syntax&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Mar 2019 14:33:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/typeerror-clazz-is-not-a-constructor-not-sure-what/m-p/825718#M7792</guid>
      <dc:creator>JamesHone</dc:creator>
      <dc:date>2019-03-10T14:33:17Z</dc:date>
    </item>
  </channel>
</rss>

