<?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 Using $arcgis.import() with self hosted SDK in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-arcgis-import-with-self-hosted-sdk/m-p/1714265#M88546</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In my organization, I can't use the CDN for data privacy reasons.&lt;/P&gt;&lt;P&gt;I need to download the SDK and host it.&lt;/P&gt;&lt;P&gt;I like the coding style offered by&amp;nbsp;$arcgis.import() rather than using AMD and find it really convenient but I found out that it is not defined in the SDK downloaded:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sdk-downloads-and-archive/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/sdk-downloads-and-archive/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It's true that it is always refereed that is it only available for application&lt;EM&gt;&amp;nbsp;built with the &lt;STRONG&gt;CDN&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;so I guess it is by design but I was wondering why not making it available there as well ?&lt;/P&gt;&lt;P&gt;More info on the official blog post:&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/products/js-api-arcgis/developers/future-proof-your-arcgis-javascript-app" target="_blank" rel="noopener"&gt;https://www.esri.com/arcgis-blog/products/js-api-arcgis/developers/future-proof-your-arcgis-javascript-app&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks for listening !&lt;/P&gt;&lt;P&gt;Nicolas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jul 2026 17:55:23 GMT</pubDate>
    <dc:creator>NicolasGIS</dc:creator>
    <dc:date>2026-07-13T17:55:23Z</dc:date>
    <item>
      <title>Using $arcgis.import() with self hosted SDK</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-arcgis-import-with-self-hosted-sdk/m-p/1714265#M88546</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In my organization, I can't use the CDN for data privacy reasons.&lt;/P&gt;&lt;P&gt;I need to download the SDK and host it.&lt;/P&gt;&lt;P&gt;I like the coding style offered by&amp;nbsp;$arcgis.import() rather than using AMD and find it really convenient but I found out that it is not defined in the SDK downloaded:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sdk-downloads-and-archive/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/sdk-downloads-and-archive/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It's true that it is always refereed that is it only available for application&lt;EM&gt;&amp;nbsp;built with the &lt;STRONG&gt;CDN&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;so I guess it is by design but I was wondering why not making it available there as well ?&lt;/P&gt;&lt;P&gt;More info on the official blog post:&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/products/js-api-arcgis/developers/future-proof-your-arcgis-javascript-app" target="_blank" rel="noopener"&gt;https://www.esri.com/arcgis-blog/products/js-api-arcgis/developers/future-proof-your-arcgis-javascript-app&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks for listening !&lt;/P&gt;&lt;P&gt;Nicolas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2026 17:55:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-arcgis-import-with-self-hosted-sdk/m-p/1714265#M88546</guid>
      <dc:creator>NicolasGIS</dc:creator>
      <dc:date>2026-07-13T17:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using $arcgis.import() with self hosted SDK</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-arcgis-import-with-self-hosted-sdk/m-p/1714281#M88547</link>
      <description>&lt;P&gt;The download of the SDK should be the same as what is published to the CDN.&lt;/P&gt;&lt;P&gt;Test this out locally and was able to use $arcgis.import()&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
  &amp;lt;meta charset="utf-8" /&amp;gt;
  &amp;lt;meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" /&amp;gt;
  &amp;lt;title&amp;gt;
    Test app
  &amp;lt;/title&amp;gt;
  &amp;lt;link rel="stylesheet"
    href="http://localhost/builds/arcgis_js_v50_core_api/javascript/5.0/esri/themes/light/main.css" /&amp;gt;

  &amp;lt;script type="module" src="http://localhost/builds/arcgis_js_v50_core_api/javascript/5.0/core.js"&amp;gt;&amp;lt;/script&amp;gt;
  &amp;lt;style&amp;gt;
    html,
    body,
    #viewDiv {
      padding: 0;
      margin: 0;
      height: 100%;
      width: 100%;
    }
  &amp;lt;/style&amp;gt;
  &amp;lt;script type="module"&amp;gt;
    const [Map, MapView, Search] =
      await $arcgis.import([
        "@arcgis/core/Map.js",
        "@arcgis/core/views/MapView.js",
        "@arcgis/core/widgets/Search.js",
      ]);

    const map = new Map({
      basemap: "dark-gray-vector",
    });

    const view = new MapView({
      container: "viewDiv",
      map: map,
    });

    const search = new Search({
      view: view,
    });
    view.ui.add(search, "top-right");
  &amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;
  &amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Only place it's not available is in the npm build.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2026 19:31:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-arcgis-import-with-self-hosted-sdk/m-p/1714281#M88547</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2026-07-13T19:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using $arcgis.import() with self hosted SDK</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-arcgis-import-with-self-hosted-sdk/m-p/1714284#M88548</link>
      <description>&lt;P&gt;Thanks for your quick reply&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7384"&gt;@ReneRubalcava&lt;/a&gt; !&lt;/P&gt;&lt;P&gt;Happy to read it is possible ! I must have done something wrong in my setup &lt;SPAN&gt;then.&amp;nbsp;&lt;/SPAN&gt;My bad. I had $arcgis.import error though everything seemed loaded at first sight. Will try again and let you know.&lt;/P&gt;&lt;P&gt;By the way, it would be great to have a simple export button with all the components and core wired properly for a given SDK version. Downloading everything manually from npm is error prone !&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2026 19:42:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-arcgis-import-with-self-hosted-sdk/m-p/1714284#M88548</guid>
      <dc:creator>NicolasGIS</dc:creator>
      <dc:date>2026-07-13T19:42:55Z</dc:date>
    </item>
  </channel>
</rss>

