<?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: Uncaught (in promise) TypeError: Cannot read property 'items' of null in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/uncaught-in-promise-typeerror-cannot-read-property/m-p/1046622#M72509</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;Would you be able to provide a reproducible codepen?&amp;nbsp;&lt;BR /&gt;I tried the workflow with the Sketch widget you provided, and could not reproduce the issue in 4.18.&lt;BR /&gt;Take a look at this codepen:&lt;BR /&gt;&lt;A href="https://codepen.io/banuelosj/pen/QWdmEMb?editors=1000" target="_blank"&gt;https://codepen.io/banuelosj/pen/QWdmEMb?editors=1000&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Apr 2021 20:33:16 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-04-13T20:33:16Z</dc:date>
    <item>
      <title>Uncaught (in promise) TypeError: Cannot read property 'items' of null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/uncaught-in-promise-typeerror-cannot-read-property/m-p/1044847#M72394</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I just upgrades from 4.11 to 4.18 and i got an issue that a cannot figured how to resolve.&lt;/P&gt;&lt;P&gt;I can reproduce it by two different ways:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;When creating a polygon with the sketch widget. After my first click on the map, the error occurs and the sketch is cancel.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;this.sketch = new Sketch({
      layer: this.sketchLayer,
      view: this.view,
      creationMode: 'single',
});

this.sketch.create('polygon');&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;When using the DistanceMeasurement2D. The error occurs when the measurement is completed.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const widget = new DistanceMeasurement2D({ view: this.props.view });
widget.viewModel.unit = this.state.currentMeasurementUnit;
widget.viewModel.mode = 'geodesic';
widget.viewModel.newMeasurement();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Uncaught (in promise) TypeError: Cannot read property 'items' of null&lt;BR /&gt;at g.P._getGraphicsToUpdate (mapViewDeps.js:685)&lt;BR /&gt;at g.P._updateGraphics (mapViewDeps.js:686)&lt;BR /&gt;at g.P._updateGraphics (mapViewDeps.js:689)&lt;/P&gt;&lt;P&gt;Any idea how i can fix it?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jerome&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 12:29:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/uncaught-in-promise-typeerror-cannot-read-property/m-p/1044847#M72394</guid>
      <dc:creator>JérômeCauchon</dc:creator>
      <dc:date>2021-04-08T12:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Uncaught (in promise) TypeError: Cannot read property 'items' of null</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/uncaught-in-promise-typeerror-cannot-read-property/m-p/1046622#M72509</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;Would you be able to provide a reproducible codepen?&amp;nbsp;&lt;BR /&gt;I tried the workflow with the Sketch widget you provided, and could not reproduce the issue in 4.18.&lt;BR /&gt;Take a look at this codepen:&lt;BR /&gt;&lt;A href="https://codepen.io/banuelosj/pen/QWdmEMb?editors=1000" target="_blank"&gt;https://codepen.io/banuelosj/pen/QWdmEMb?editors=1000&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 20:33:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/uncaught-in-promise-typeerror-cannot-read-property/m-p/1046622#M72509</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-04-13T20:33:16Z</dc:date>
    </item>
  </channel>
</rss>

