<?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: JavaScript error when using locally hosted ArcGIS Maps SDK CDN in a production Experience Builder application in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/javascript-error-when-using-locally-hosted-arcgis/m-p/1607567#M18554</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;When the error happens I can see that OAuthInfo, IdentityManager and init.js get loaded from the Maps SDK CDN (from the cache).&lt;/P&gt;&lt;P&gt;I even tried with a single custom widget that imported only React and returned an empty div and still the same error happened so it can't be about Maps SDK import in the custom widget.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Apr 2025 06:10:06 GMT</pubDate>
    <dc:creator>kendrick123</dc:creator>
    <dc:date>2025-04-21T06:10:06Z</dc:date>
    <item>
      <title>JavaScript error when using locally hosted ArcGIS Maps SDK CDN in a production Experience Builder application</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/javascript-error-when-using-locally-hosted-arcgis/m-p/1606625#M18507</link>
      <description>&lt;P&gt;I am getting the following error when hosting a downloaded ExB app which uses a locally hosted CDN:&lt;/P&gt;&lt;P&gt;index.js:2 Action class widgets/common/table/dist/data-actions/view-in-table load failed. TypeError: Cannot read properties of null (reading 'trim')&lt;BR /&gt;at Module.w [as normalize] (init.js:116:221)&lt;BR /&gt;at k._sanitizeUrl (IdentityManager.js:35:388)&lt;BR /&gt;at k.findOAuthInfo (IdentityManager.js:13:222)&lt;BR /&gt;at nI.registerOAuthInfo (index.js:610:23023)&lt;BR /&gt;at nI.initToRegisterOAuthForMainPortalAndAGOL (index.js:610:22681)&lt;BR /&gt;at nI.&amp;lt;anonymous&amp;gt; (index.js:610:18494)&lt;BR /&gt;at Generator.next (&amp;lt;anonymous&amp;gt;)&lt;BR /&gt;at s (index.js:610:17219)&lt;/P&gt;&lt;P&gt;I have spent days trying to debug the problem with no success. The error happens if I have a custom widget and also the built in table widget inside the experience. The downloaded experience is hosted on IIS. The error does not happen on the first load but on a random consecutive load and after the error it keeps giving the same error.&lt;/P&gt;&lt;P&gt;Few observations:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The error does not surface when using CDN hosted in ESRI servers.&lt;/LI&gt;&lt;LI&gt;The error only happens if experience has a custom widget and the built in table widget.&lt;/LI&gt;&lt;LI&gt;Error disappears when clearing the cache.&lt;/LI&gt;&lt;LI&gt;Error disappears when updating service workers on reload.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So for some reason portalUrl value ends up being undefined and that's what's causing the error inside view-in-table but I have no idea why. I suppose it has something to do with caching and service workers.&lt;/P&gt;&lt;P&gt;As a last resort I did a fresh offline install of ExB developer edition 1.17, downloaded the JSAPI 4.32 and hosted it on IIS. In Experience Builder I created an experience, added the table widget and the sample custom widget that comes with ExB dev edition download and still the same error appears.&lt;/P&gt;&lt;P&gt;I hope that someone can shed some light into why is this happening.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 18:50:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/javascript-error-when-using-locally-hosted-arcgis/m-p/1606625#M18507</guid>
      <dc:creator>kendrick123</dc:creator>
      <dc:date>2025-04-16T18:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript error when using locally hosted ArcGIS Maps SDK CDN in a production Experience Builder application</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/javascript-error-when-using-locally-hosted-arcgis/m-p/1607203#M18534</link>
      <description>&lt;P&gt;When the error happens, do you see whether the Maps SDK is loaded?&lt;/P&gt;&lt;P&gt;In your custom widget, do you use the Maps SDK by "import ... from 'esri/..."? If yes, do you add the "jimu-arcgis" dependency in the manifest?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2025 01:57:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/javascript-error-when-using-locally-hosted-arcgis/m-p/1607203#M18534</guid>
      <dc:creator>JunshanLiu</dc:creator>
      <dc:date>2025-04-18T01:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript error when using locally hosted ArcGIS Maps SDK CDN in a production Experience Builder application</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/javascript-error-when-using-locally-hosted-arcgis/m-p/1607567#M18554</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;When the error happens I can see that OAuthInfo, IdentityManager and init.js get loaded from the Maps SDK CDN (from the cache).&lt;/P&gt;&lt;P&gt;I even tried with a single custom widget that imported only React and returned an empty div and still the same error happened so it can't be about Maps SDK import in the custom widget.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2025 06:10:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/javascript-error-when-using-locally-hosted-arcgis/m-p/1607567#M18554</guid>
      <dc:creator>kendrick123</dc:creator>
      <dc:date>2025-04-21T06:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript error when using locally hosted ArcGIS Maps SDK CDN in a production Experience Builder application</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/javascript-error-when-using-locally-hosted-arcgis/m-p/1607966#M18578</link>
      <description>&lt;P&gt;So, a very simple custom widget + table widget + local host JSAPI will trigger the error? We'll check whether we can reproduce this issue.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 09:27:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/javascript-error-when-using-locally-hosted-arcgis/m-p/1607966#M18578</guid>
      <dc:creator>JunshanLiu</dc:creator>
      <dc:date>2025-04-22T09:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript error when using locally hosted ArcGIS Maps SDK CDN in a production Experience Builder application</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/javascript-error-when-using-locally-hosted-arcgis/m-p/1608402#M18598</link>
      <description>&lt;P&gt;As you described, I set up the local host JSAPI using JSAPI 4.32 in my local environment, created the app using ExB developer edition 1.17, added the table and sample custom widget. After multiple refreshes and loads, the problem you mentioned was not reproduced. Perhaps you could describe your operations specifically, such as a particular custom widget, or under what conditions you load the app, etc.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 10:02:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/javascript-error-when-using-locally-hosted-arcgis/m-p/1608402#M18598</guid>
      <dc:creator>ShaozeSun</dc:creator>
      <dc:date>2025-04-23T10:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript error when using locally hosted ArcGIS Maps SDK CDN in a production Experience Builder application</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/javascript-error-when-using-locally-hosted-arcgis/m-p/1608852#M18623</link>
      <description>&lt;P&gt;Hi! Thanks for trying it out yourself.&lt;/P&gt;&lt;P&gt;In the webapp with only simple widget and table widget I could produce the error if the page is refreshed before it is fully done loading. With many custom widgets it happens more frequently and also refreshing after everything has fully loaded.&lt;/P&gt;&lt;P&gt;I copied the 'simple widget' webapp and JSAPI to a new cloud server to test whether it is system specific and still I got the same error on a quick refresh. The main workflow I follow is just downloading the app from ExB, unzipping and copying it to IIS wwwroot and doing exactly the same with the JSAPI. Then I load the app via network. Also, the issue is not browser specific.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 11:24:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/javascript-error-when-using-locally-hosted-arcgis/m-p/1608852#M18623</guid>
      <dc:creator>kendrick123</dc:creator>
      <dc:date>2025-04-24T11:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript error when using locally hosted ArcGIS Maps SDK CDN in a production Experience Builder application</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/javascript-error-when-using-locally-hosted-arcgis/m-p/1611926#M18795</link>
      <description>&lt;P&gt;I finally decided to downgrade to ExB version 1.16 and there everything works as expected. I followed exactly the same workflow as I did with 1.17 on the same servers with same server software and settings.&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 12:18:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/javascript-error-when-using-locally-hosted-arcgis/m-p/1611926#M18795</guid>
      <dc:creator>kendrick123</dc:creator>
      <dc:date>2025-05-06T12:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript error when using locally hosted ArcGIS Maps SDK CDN in a production Experience Builder application</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/javascript-error-when-using-locally-hosted-arcgis/m-p/1612669#M18842</link>
      <description>&lt;P&gt;I downloaded the EXB app as you described and deployed it as a service a&lt;SPAN&gt;nd doing the same with the JSAPI&lt;/SPAN&gt;. But unfortunately, after many rapid operations such as refreshing, I still failed to reproduce the problem you mentioned. (&lt;SPAN&gt;JSAPI 4.32,&amp;nbsp;ExB developer edition 1.17&lt;/SPAN&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 02:32:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/javascript-error-when-using-locally-hosted-arcgis/m-p/1612669#M18842</guid>
      <dc:creator>ShaozeSun</dc:creator>
      <dc:date>2025-05-08T02:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript error when using locally hosted ArcGIS Maps SDK CDN in a production Experience Builder application</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/javascript-error-when-using-locally-hosted-arcgis/m-p/1642153#M20451</link>
      <description>&lt;P&gt;We're also seeing this issue across our ExB Developer Edition applications with custom widgets; our applications are using ExB 1.17; did you find a resolution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fun fact: Error is also not reproducible if you're recording the network stream in developer tools&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":upside_down_face:"&gt;🙃&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 20:24:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/javascript-error-when-using-locally-hosted-arcgis/m-p/1642153#M20451</guid>
      <dc:creator>JordanCarmona</dc:creator>
      <dc:date>2025-08-14T20:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript error when using locally hosted ArcGIS Maps SDK CDN in a production Experience Builder application</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/javascript-error-when-using-locally-hosted-arcgis/m-p/1642762#M20472</link>
      <description>&lt;P&gt;Sadly I did not find a solution. I just reverted back to 1.16 and hoping that next versions from 1.18 and on won't have this issue.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 06:04:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/javascript-error-when-using-locally-hosted-arcgis/m-p/1642762#M20472</guid>
      <dc:creator>kendrick123</dc:creator>
      <dc:date>2025-08-18T06:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript error when using locally hosted ArcGIS Maps SDK CDN in a production Experience Builder application</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/javascript-error-when-using-locally-hosted-arcgis/m-p/1642763#M20473</link>
      <description>&lt;P&gt;Where do you host the Maps SDK? Under the same domain as the app?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 06:13:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/javascript-error-when-using-locally-hosted-arcgis/m-p/1642763#M20473</guid>
      <dc:creator>JunshanLiu</dc:creator>
      <dc:date>2025-08-18T06:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript error when using locally hosted ArcGIS Maps SDK CDN in a production Experience Builder application</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/javascript-error-when-using-locally-hosted-arcgis/m-p/1642774#M20474</link>
      <description>&lt;P&gt;Yes, both are hosted on the same machine on IIS.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 06:50:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/javascript-error-when-using-locally-hosted-arcgis/m-p/1642774#M20474</guid>
      <dc:creator>kendrick123</dc:creator>
      <dc:date>2025-08-18T06:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript error when using locally hosted ArcGIS Maps SDK CDN in a production Experience Builder application</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/javascript-error-when-using-locally-hosted-arcgis/m-p/1643476#M20506</link>
      <description>&lt;P&gt;We were in the same boat; we're testing and upgrading into 1.18 where we were unable to reproduce the issue. The lift should be fairly minimal for you since the calcite issues were introduced in 1.17; we haven't encountered any huge gotchas.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 21:01:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/javascript-error-when-using-locally-hosted-arcgis/m-p/1643476#M20506</guid>
      <dc:creator>JordanCarmona</dc:creator>
      <dc:date>2025-08-19T21:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript error when using locally hosted ArcGIS Maps SDK CDN in a production Experience Builder application</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/javascript-error-when-using-locally-hosted-arcgis/m-p/1648082#M20707</link>
      <description>&lt;P&gt;We're at 1.18 now without any issues; the original issue also disappeared for our 1.17 test applications after the edge browser updated.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2025 20:44:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/javascript-error-when-using-locally-hosted-arcgis/m-p/1648082#M20707</guid>
      <dc:creator>JordanCarmona</dc:creator>
      <dc:date>2025-09-04T20:44:33Z</dc:date>
    </item>
  </channel>
</rss>

