<?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 Custom component not working when switching to on premise in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-component-not-working-when-switching-to-on/m-p/1276101#M80778</link>
    <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;I have a custom control that I have developed that when I am hooking it up to point at the online ArcGIS JavaScript source (&lt;A href="https://js.arcgis.com/4.25)" target="_blank" rel="noopener"&gt;https://js.arcgis.com/4.25)&lt;/A&gt;&amp;nbsp;it works as expected when I provide it a valid portal and portal id.&lt;/P&gt;&lt;P&gt;We also have an internal portal server running 10.9.1 and we are serving up the equivalent 4.25 JavaScript using the scripts downloaded from here (&lt;A href="https://developers.arcgis.com/downloads/#javascript" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/downloads/#javascript&lt;/A&gt;) - I didn't configure this but it is definitely serving up the contents.&lt;/P&gt;&lt;P&gt;If I then take that exact same component and try to use our internal setup it is exhibiting different behaviour. I am getting the following errors in the browser console when the control is trying to load the map:&lt;/P&gt;&lt;P&gt;init.js:29&lt;BR /&gt;&lt;STRONG&gt;GET &lt;A href="https://test.maps.my-domain.com/javascript/api/4.25/init.js./core/accessorSupport/decorators/cast" target="_blank" rel="noopener"&gt;https://test.maps.my-domain.com/javascript/api/4.25/init.js./core/accessorSupport/decorators/cast&lt;/A&gt; net::ERR_ABORTED 404 (Not Found)&lt;/STRONG&gt;&lt;BR /&gt;init.js:30&lt;BR /&gt;Error: scriptError: &lt;A href="https://test.maps.my-domain.com/javascript/api/4.25/init.js./core/accessorSupport/decorators/cast" target="_blank" rel="noopener"&gt;https://test.maps.my-domain.com/javascript/api/4.25/init.js./core/accessorSupport/decorators/cast&lt;/A&gt;&lt;BR /&gt;at t (init.js:6:37)&lt;BR /&gt;at HTMLScriptElement.&amp;lt;anonymous&amp;gt; (init.js:29:339)&lt;BR /&gt;init.js:30 src: dojoLoader&lt;BR /&gt;init.js:30 info: (2)&amp;nbsp;['&lt;A href="https://test.maps.my-domain.com/javascript/api/4.25/init.js./core/accessorSupport/decorators/cast" target="_blank" rel="noopener"&gt;https://test.maps.my-domain.com/javascript/api/4.25/init.js./core/accessorSupport/decorators/cast&lt;/A&gt;', Event]&lt;BR /&gt;init.js:30 popStackFrame: ƒ (){if(typeof this.stack==="undefined"||this.stack===null||typeof this.fileName==="undefined"||this.fileName===null||typeof this.lineNumber==="undefined"||this.lineNumber===null)return;var a=this.stac…&lt;BR /&gt;init.js:30 .&lt;BR /&gt;init.js:6&lt;BR /&gt;Uncaught (in promise) Error: scriptError: &lt;A href="https://test.maps.my-domain.com/javascript/api/4.25/init.js./core/accessorSupport/decorators/cast" target="_blank" rel="noopener"&gt;https://test.maps.my-domain.com/javascript/api/4.25/init.js./core/accessorSupport/decorators/cast&lt;/A&gt;&lt;BR /&gt;at t (init.js:6:37)&lt;BR /&gt;at HTMLScriptElement.&amp;lt;anonymous&amp;gt; (init.js:29:339)&lt;BR /&gt;t @ init.js:6&lt;BR /&gt;(anonymous) @ init.js:29&lt;/P&gt;&lt;P&gt;My control makes no specific calls to any behaviour in the (&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-core-accessorSupport-decorators.html" target="_blank" rel="noopener"&gt;decorators | API Reference | ArcGIS Maps SDK for JavaScript 4.26 | ArcGIS Developers&lt;/A&gt;) - UPDATE - after tracing through a bit further it looks as though it is the Point class that uses this (I need to use Point).&lt;/P&gt;&lt;P&gt;I am not sure as to why it works online but not on prem.&lt;/P&gt;&lt;P&gt;Does anyone have any idea as to what might be happening here?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Apr 2023 09:30:35 GMT</pubDate>
    <dc:creator>nevvo</dc:creator>
    <dc:date>2023-04-06T09:30:35Z</dc:date>
    <item>
      <title>Custom component not working when switching to on premise</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-component-not-working-when-switching-to-on/m-p/1276101#M80778</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;I have a custom control that I have developed that when I am hooking it up to point at the online ArcGIS JavaScript source (&lt;A href="https://js.arcgis.com/4.25)" target="_blank" rel="noopener"&gt;https://js.arcgis.com/4.25)&lt;/A&gt;&amp;nbsp;it works as expected when I provide it a valid portal and portal id.&lt;/P&gt;&lt;P&gt;We also have an internal portal server running 10.9.1 and we are serving up the equivalent 4.25 JavaScript using the scripts downloaded from here (&lt;A href="https://developers.arcgis.com/downloads/#javascript" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/downloads/#javascript&lt;/A&gt;) - I didn't configure this but it is definitely serving up the contents.&lt;/P&gt;&lt;P&gt;If I then take that exact same component and try to use our internal setup it is exhibiting different behaviour. I am getting the following errors in the browser console when the control is trying to load the map:&lt;/P&gt;&lt;P&gt;init.js:29&lt;BR /&gt;&lt;STRONG&gt;GET &lt;A href="https://test.maps.my-domain.com/javascript/api/4.25/init.js./core/accessorSupport/decorators/cast" target="_blank" rel="noopener"&gt;https://test.maps.my-domain.com/javascript/api/4.25/init.js./core/accessorSupport/decorators/cast&lt;/A&gt; net::ERR_ABORTED 404 (Not Found)&lt;/STRONG&gt;&lt;BR /&gt;init.js:30&lt;BR /&gt;Error: scriptError: &lt;A href="https://test.maps.my-domain.com/javascript/api/4.25/init.js./core/accessorSupport/decorators/cast" target="_blank" rel="noopener"&gt;https://test.maps.my-domain.com/javascript/api/4.25/init.js./core/accessorSupport/decorators/cast&lt;/A&gt;&lt;BR /&gt;at t (init.js:6:37)&lt;BR /&gt;at HTMLScriptElement.&amp;lt;anonymous&amp;gt; (init.js:29:339)&lt;BR /&gt;init.js:30 src: dojoLoader&lt;BR /&gt;init.js:30 info: (2)&amp;nbsp;['&lt;A href="https://test.maps.my-domain.com/javascript/api/4.25/init.js./core/accessorSupport/decorators/cast" target="_blank" rel="noopener"&gt;https://test.maps.my-domain.com/javascript/api/4.25/init.js./core/accessorSupport/decorators/cast&lt;/A&gt;', Event]&lt;BR /&gt;init.js:30 popStackFrame: ƒ (){if(typeof this.stack==="undefined"||this.stack===null||typeof this.fileName==="undefined"||this.fileName===null||typeof this.lineNumber==="undefined"||this.lineNumber===null)return;var a=this.stac…&lt;BR /&gt;init.js:30 .&lt;BR /&gt;init.js:6&lt;BR /&gt;Uncaught (in promise) Error: scriptError: &lt;A href="https://test.maps.my-domain.com/javascript/api/4.25/init.js./core/accessorSupport/decorators/cast" target="_blank" rel="noopener"&gt;https://test.maps.my-domain.com/javascript/api/4.25/init.js./core/accessorSupport/decorators/cast&lt;/A&gt;&lt;BR /&gt;at t (init.js:6:37)&lt;BR /&gt;at HTMLScriptElement.&amp;lt;anonymous&amp;gt; (init.js:29:339)&lt;BR /&gt;t @ init.js:6&lt;BR /&gt;(anonymous) @ init.js:29&lt;/P&gt;&lt;P&gt;My control makes no specific calls to any behaviour in the (&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-core-accessorSupport-decorators.html" target="_blank" rel="noopener"&gt;decorators | API Reference | ArcGIS Maps SDK for JavaScript 4.26 | ArcGIS Developers&lt;/A&gt;) - UPDATE - after tracing through a bit further it looks as though it is the Point class that uses this (I need to use Point).&lt;/P&gt;&lt;P&gt;I am not sure as to why it works online but not on prem.&lt;/P&gt;&lt;P&gt;Does anyone have any idea as to what might be happening here?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 09:30:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-component-not-working-when-switching-to-on/m-p/1276101#M80778</guid>
      <dc:creator>nevvo</dc:creator>
      <dc:date>2023-04-06T09:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Custom component not working when switching to on premise</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-component-not-working-when-switching-to-on/m-p/1276519#M80797</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/650818"&gt;@nevvo&lt;/a&gt;,&amp;nbsp;thanks for posting your question here. I looked at the downloaded 4.25 init.js, and it looks like&amp;nbsp;./core/accessorSupport/decorators/cast should be included. Is there a simplified repro app you can share for testing? Can you try running the app with 4.26? And also downloading 4.26 and testing with that to see if it works?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 13:39:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-component-not-working-when-switching-to-on/m-p/1276519#M80797</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2023-04-07T13:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Custom component not working when switching to on premise</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-component-not-working-when-switching-to-on/m-p/1277222#M80824</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;After a bit more investigation it turns out someone had manually edited the init.js file and had mistakenly pasted in &lt;A href="https://test.maps.my-domain.com/javascript/api/4.25/init.js./core/accessorSupport/decorators/cast" target="_blank" rel="noopener nofollow noreferrer"&gt;https://test.maps.my-domain.com/javascript/api/4.25/init.js&lt;/A&gt;&amp;nbsp;to the file which was causing the problem.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 10:46:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-component-not-working-when-switching-to-on/m-p/1277222#M80824</guid>
      <dc:creator>nevvo</dc:creator>
      <dc:date>2023-04-11T10:46:11Z</dc:date>
    </item>
  </channel>
</rss>

