<?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: Deploying Custom Widget on Portal (enterprise11.5) in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/deploying-custom-widget-on-portal-enterprise11-5/m-p/1688635#M22718</link>
    <description>&lt;P&gt;Check that you have jimu-arcgis listed as a dependency in manifest.json, like this example.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "name": "basicMapWidget",
  "label": "Basic Map Widget",
  "type": "widget",
  "version": "1.12.0",
  "dependency": [ "jimu-arcgis" ],
  "exbVersion": "1.12.0",
  "author": "Jeffrey Thompson",
  "description": "Base for widget that need to connect to a map",
  "copyright": "City of Arlington",
  "license": "http://www.apache.org/licenses/LICENSE-2.0",
  "properties": {},
  "translatedLocales": [
    "en"
  ],
  "defaultSize": {
    "width": 800,
    "height": 500
  }
}&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 05 Mar 2026 13:03:29 GMT</pubDate>
    <dc:creator>JeffreyThompson2</dc:creator>
    <dc:date>2026-03-05T13:03:29Z</dc:date>
    <item>
      <title>Deploying Custom Widget on Portal (enterprise11.5)</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/deploying-custom-widget-on-portal-enterprise11-5/m-p/1688631#M22716</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have developed a custom widget using &lt;STRONG&gt;&lt;SPAN class=""&gt;ArcGIS Experience Builder Developer Edition&lt;/SPAN&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;The widget works correctly:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Locally (Developer Edition)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;In Experience Builder Live View on the Portal&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;However, after publishing the app and opening it in Preview, the widget no longer works. I receive the following error:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Cannot read properties of null (reading 'view')&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It appears that JimuMapView is null after publishing. I noticed that my activeViewChangeHandler does not tirgger which is why its null.&lt;/P&gt;&lt;P&gt;Here is the relevant code where I initialize the map view:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;const&lt;/SPAN&gt; &lt;SPAN class=""&gt;activeViewChangeHandler&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN class=""&gt;jmv&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;JimuMapView&lt;/SPAN&gt;&lt;SPAN&gt;) =&amp;gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; if&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN class=""&gt;jmv&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; setJimuMapView&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;jmv&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN class=""&gt;props&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;useMapWidgetIds &lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; &lt;SPAN class=""&gt;props&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;useMapWidgetIds&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;length &lt;/SPAN&gt;&lt;SPAN class=""&gt;===&lt;/SPAN&gt; &lt;SPAN class=""&gt;1&lt;/SPAN&gt; &lt;SPAN class=""&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;lt;JimuMapViewComponent&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; useMapWidgetId&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN class=""&gt;props&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;useMapWidgetIds?.[&lt;/SPAN&gt;&lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;]}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; onActiveViewChange&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN class=""&gt;activeViewChangeHandler&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;I’m unsure why JimuMapView becomes null only after publishing, while it works correctly in Live View and locally.&lt;/P&gt;&lt;P&gt;Has anyone experienced this behavior or knows what might cause this difference between Live and Published modes?&lt;/P&gt;&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 05 Mar 2026 11:05:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/deploying-custom-widget-on-portal-enterprise11-5/m-p/1688631#M22716</guid>
      <dc:creator>BrankoTomasic</dc:creator>
      <dc:date>2026-03-05T11:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Deploying Custom Widget on Portal (enterprise11.5)</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/deploying-custom-widget-on-portal-enterprise11-5/m-p/1688635#M22718</link>
      <description>&lt;P&gt;Check that you have jimu-arcgis listed as a dependency in manifest.json, like this example.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "name": "basicMapWidget",
  "label": "Basic Map Widget",
  "type": "widget",
  "version": "1.12.0",
  "dependency": [ "jimu-arcgis" ],
  "exbVersion": "1.12.0",
  "author": "Jeffrey Thompson",
  "description": "Base for widget that need to connect to a map",
  "copyright": "City of Arlington",
  "license": "http://www.apache.org/licenses/LICENSE-2.0",
  "properties": {},
  "translatedLocales": [
    "en"
  ],
  "defaultSize": {
    "width": 800,
    "height": 500
  }
}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 05 Mar 2026 13:03:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/deploying-custom-widget-on-portal-enterprise11-5/m-p/1688635#M22718</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2026-03-05T13:03:29Z</dc:date>
    </item>
  </channel>
</rss>

