<?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: Setting up codesandbox with @arcgis/core in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-codesandbox-with-arcgis-core/m-p/1176123#M77420</link>
    <description>&lt;P&gt;Currently, no. There is no fix.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;But&lt;/EM&gt;, based on &lt;A href="https://github.com/parcel-bundler/parcel/issues/5772#issuecomment-1133377231" target="_self"&gt;this comment here&lt;/A&gt;, this will work in an upcoming release of Parcel, so eventually should work in codesandbox down the road.&lt;/P&gt;</description>
    <pubDate>Fri, 20 May 2022 21:19:56 GMT</pubDate>
    <dc:creator>ReneRubalcava</dc:creator>
    <dc:date>2022-05-20T21:19:56Z</dc:date>
    <item>
      <title>Setting up codesandbox with @arcgis/core</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-codesandbox-with-arcgis-core/m-p/1047753#M72563</link>
      <description>&lt;P&gt;I'm trying to set up a simple template using codesandbox to be able to spin up arcgis js api maps quickly.&amp;nbsp; I dont like codepen as much as codesandbox.&amp;nbsp; I'd like to do it with the newer es6 module imports.&amp;nbsp; I added&amp;nbsp;@Anonymous User/core to the dependencies, and in my js file I have this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import Map from "@arcgis/core/Map";
import MapView from "@arcgis/core/views/MapView";
import "@arcgis/core/assets/esri/themes/dark/main.css";

const map = new Map({
  basemap: "dark-grey"
});

const view = new MapView({
  map,
  container: "viewDiv",
  zoom: 4,
  center: [15, 65]
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately I'm getting the error:&lt;/P&gt;&lt;DIV&gt;&lt;FONT color="#FF0000"&gt;Cannot read property 'zoomIn' of null&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I tried using the `ncp` script under the&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/es-modules/" target="_self"&gt;copy assets section of the docs&lt;/A&gt;&amp;nbsp;, but that makes no difference.&amp;nbsp; If you close the error overlay, you can see that the map container does seem to render, but no map is in there.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="https://codesandbox.io/s/arcgis-js-core-rhxb6" target="_self"&gt;Here is the codesandbox in question&lt;/A&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;What simple thing am I missing here?&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 15 Apr 2021 18:25:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-codesandbox-with-arcgis-core/m-p/1047753#M72563</guid>
      <dc:creator>SethLutske</dc:creator>
      <dc:date>2021-04-15T18:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up codesandbox with @arcgis/core</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-codesandbox-with-arcgis-core/m-p/1047757#M72564</link>
      <description>&lt;P&gt;The vanilla JS project for codesandbox uses parcel, and there is currently an open issue with &lt;A href="https://github.com/parcel-bundler/parcel/issues/5772" target="_self"&gt;parcel-bundler&lt;/A&gt; about errors loading the API with Parcel. So it's probably not going to work with that template.&lt;/P&gt;&lt;P&gt;If you just want to do some testing, you can use ESM via the CDN as described here.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/install-and-set-up/#es-modules-via-cdn" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/install-and-set-up/#es-modules-via-cdn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 18:47:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-codesandbox-with-arcgis-core/m-p/1047757#M72564</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-04-15T18:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up codesandbox with @arcgis/core</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-codesandbox-with-arcgis-core/m-p/1047765#M72565</link>
      <description>&lt;P&gt;Amazing, thank you.&amp;nbsp; I had a feeling it had to do with parcel bundler - I'll import straight from the CDN.&amp;nbsp; Thanks for the quick reply.&amp;nbsp; Also I'm a huge fan&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beer_mug:"&gt;🍺&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 18:56:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-codesandbox-with-arcgis-core/m-p/1047765#M72565</guid>
      <dc:creator>SethLutske</dc:creator>
      <dc:date>2021-04-15T18:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up codesandbox with @arcgis/core</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-codesandbox-with-arcgis-core/m-p/1048107#M72588</link>
      <description>&lt;P&gt;I try in codeSanbox and I get:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LaurynasGedminas2_0-1618582581255.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/11093i4A5D03CFD676381D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LaurynasGedminas2_0-1618582581255.png" alt="LaurynasGedminas2_0-1618582581255.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 14:16:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-codesandbox-with-arcgis-core/m-p/1048107#M72588</guid>
      <dc:creator>LaurynasGedminas2</dc:creator>
      <dc:date>2021-04-16T14:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up codesandbox with @arcgis/core</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-codesandbox-with-arcgis-core/m-p/1048114#M72589</link>
      <description>&lt;P&gt;I had the same issue.&amp;nbsp; CSB or parcel doesn't seem to understand we're trying to import from a remote url, not a node module.&amp;nbsp; Rather than spend too much time on that, I made a static sandbox that I'm now using as a template.&amp;nbsp; Feel free to fork it:&lt;/P&gt;&lt;P&gt;&lt;A href="https://codesandbox.io/s/arcgis-js-api-arcgiscore-template-example-bw741" target="_self"&gt;Static Codesandbox: ArcGIS JS API template using @arcgis/core modules&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 14:22:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-codesandbox-with-arcgis-core/m-p/1048114#M72589</guid>
      <dc:creator>SethLutske</dc:creator>
      <dc:date>2021-04-16T14:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up codesandbox with @arcgis/core</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-codesandbox-with-arcgis-core/m-p/1048157#M72596</link>
      <description>&lt;P&gt;building new one here:&amp;nbsp;&lt;A href="https://codesandbox.io/s/esri-react-test1-ji744?file=/src/App.js" target="_blank"&gt;https://codesandbox.io/s/esri-react-test1-ji744?file=/src/App.js&lt;/A&gt;&lt;/P&gt;&lt;P&gt;it allows to add '@arcgis/code'&amp;nbsp; as dependancy, but errors out&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 15:26:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-codesandbox-with-arcgis-core/m-p/1048157#M72596</guid>
      <dc:creator>LaurynasGedminas2</dc:creator>
      <dc:date>2021-04-16T15:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up codesandbox with @arcgis/core</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-codesandbox-with-arcgis-core/m-p/1048166#M72597</link>
      <description>&lt;P&gt;You are trying to import an arcgis/core Map component as a react component.&amp;nbsp; These are&amp;nbsp;&lt;EM&gt;not&lt;/EM&gt; react components.&amp;nbsp; You either need to build your own react components from the arcgis js api components, or use&amp;nbsp;&lt;A href="https://github.com/Esri/react-arcgis" target="_self"&gt;react-arcgis&lt;/A&gt;&amp;nbsp;.&amp;nbsp; There are lots of tutorials out there on how to use the arcgis js api with react.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 15:41:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-codesandbox-with-arcgis-core/m-p/1048166#M72597</guid>
      <dc:creator>SethLutske</dc:creator>
      <dc:date>2021-04-16T15:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up codesandbox with @arcgis/core</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-codesandbox-with-arcgis-core/m-p/1048172#M72598</link>
      <description>&lt;P&gt;The "Map" from the API is not a React component, you can't use it as one. Here is a working sandbox using the API and React.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codesandbox.io/s/esri-react-test1-forked-bdpsy" target="_blank"&gt;https://codesandbox.io/s/esri-react-test1-forked-bdpsy&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 15:44:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-codesandbox-with-arcgis-core/m-p/1048172#M72598</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-04-16T15:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up codesandbox with @arcgis/core</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-codesandbox-with-arcgis-core/m-p/1048184#M72599</link>
      <description>&lt;P&gt;Cool, thank you,&lt;/P&gt;&lt;P&gt;gives error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LaurynasGedminas2_0-1618588385857.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/11116i810699BAF69745E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LaurynasGedminas2_0-1618588385857.png" alt="LaurynasGedminas2_0-1618588385857.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 15:53:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-codesandbox-with-arcgis-core/m-p/1048184#M72599</guid>
      <dc:creator>LaurynasGedminas2</dc:creator>
      <dc:date>2021-04-16T15:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up codesandbox with @arcgis/core</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-codesandbox-with-arcgis-core/m-p/1176093#M77419</link>
      <description>&lt;P&gt;I am also getting an error when running "parcel build" using the&amp;nbsp;@arcgis/core package.&amp;nbsp; I'm using version&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;2.5.0 of parcel.&amp;nbsp; Any tricks to get the build command to work with parcel?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 20 May 2022 19:59:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-codesandbox-with-arcgis-core/m-p/1176093#M77419</guid>
      <dc:creator>PatrickMcKinney99</dc:creator>
      <dc:date>2022-05-20T19:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up codesandbox with @arcgis/core</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-codesandbox-with-arcgis-core/m-p/1176123#M77420</link>
      <description>&lt;P&gt;Currently, no. There is no fix.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;But&lt;/EM&gt;, based on &lt;A href="https://github.com/parcel-bundler/parcel/issues/5772#issuecomment-1133377231" target="_self"&gt;this comment here&lt;/A&gt;, this will work in an upcoming release of Parcel, so eventually should work in codesandbox down the road.&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 21:19:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-codesandbox-with-arcgis-core/m-p/1176123#M77420</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2022-05-20T21:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up codesandbox with @arcgis/core</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-codesandbox-with-arcgis-core/m-p/1177570#M77491</link>
      <description>&lt;P&gt;I can confirm that by using the&amp;nbsp;@parcel/bundler-experimental and versions of&amp;nbsp;@parcel/core and parcel mentioned on the GitHub issue, I was able to generate a build in parcel.js using ESM modules and JS API.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 15:39:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-codesandbox-with-arcgis-core/m-p/1177570#M77491</guid>
      <dc:creator>PatrickMcKinney99</dc:creator>
      <dc:date>2022-05-26T15:39:55Z</dc:date>
    </item>
  </channel>
</rss>

