<?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: typescript errors when upgrading to calcite 1.4.x in Calcite Design System Questions</title>
    <link>https://community.esri.com/t5/calcite-design-system-questions/typescript-errors-when-upgrading-to-calcite-1-4-x/m-p/1294998#M418</link>
    <description>Are you using React by chance?&lt;BR /&gt;&lt;BR /&gt;Basically your item could be undefined, and undefined isn't compatible with&lt;BR /&gt;the type `HTMLCalciteDatePickerElement`&lt;BR /&gt;&lt;BR /&gt;Have a look here for a couple ways to address this:&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/63520680/argument-of-type-htmlelement-null-is-not-assignable-to-parameter-of-type-el" target="_blank"&gt;https://stackoverflow.com/questions/63520680/argument-of-type-htmlelement-null-is-not-assignable-to-parameter-of-type-el&lt;/A&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 01 Jun 2023 15:18:27 GMT</pubDate>
    <dc:creator>coryeicher</dc:creator>
    <dc:date>2023-06-01T15:18:27Z</dc:date>
    <item>
      <title>typescript errors when upgrading to calcite 1.4.x</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/typescript-errors-when-upgrading-to-calcite-1-4-x/m-p/1294980#M416</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just upgraded Calcite from version 1.3 to version 1.4 and now have 140 typescript errors where I previously had it down to only two that I couldn't resolve.&amp;nbsp; The following is an example of a very frequent new message.&amp;nbsp; What I am I doing wrong?&lt;/P&gt;&lt;LI-CODE lang="c"&gt; let fromDatePicker = document.getElementById("form57-fltr-sel-fromdate-datepicker") as HTMLCalciteDatePickerElement&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;and this is the error I am getting:&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;Conversion of type 'HTMLElement | null' to type 'HTMLCalciteDatePickerElement' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.&amp;nbsp; Type 'HTMLElement' is not comparable to type 'CalciteDatePicker'.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 14:53:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/typescript-errors-when-upgrading-to-calcite-1-4-x/m-p/1294980#M416</guid>
      <dc:creator>GaryB</dc:creator>
      <dc:date>2023-06-01T14:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: typescript errors when upgrading to calcite 1.4.x</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/typescript-errors-when-upgrading-to-calcite-1-4-x/m-p/1294989#M417</link>
      <description>&lt;P&gt;followup - based on past experience, but not really knowing exactly why, I removed my package-lock.json file and my node_modules directory and did a 'npm install' and all the new typescript errors went away.&amp;nbsp; Might this have something to do with the note on&amp;nbsp;@stencil/core version found &lt;A href="https://github.com/Esri/calcite-components" target="_self"&gt;here&lt;/A&gt;?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 15:06:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/typescript-errors-when-upgrading-to-calcite-1-4-x/m-p/1294989#M417</guid>
      <dc:creator>GaryB</dc:creator>
      <dc:date>2023-06-01T15:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: typescript errors when upgrading to calcite 1.4.x</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/typescript-errors-when-upgrading-to-calcite-1-4-x/m-p/1294998#M418</link>
      <description>Are you using React by chance?&lt;BR /&gt;&lt;BR /&gt;Basically your item could be undefined, and undefined isn't compatible with&lt;BR /&gt;the type `HTMLCalciteDatePickerElement`&lt;BR /&gt;&lt;BR /&gt;Have a look here for a couple ways to address this:&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/63520680/argument-of-type-htmlelement-null-is-not-assignable-to-parameter-of-type-el" target="_blank"&gt;https://stackoverflow.com/questions/63520680/argument-of-type-htmlelement-null-is-not-assignable-to-parameter-of-type-el&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Jun 2023 15:18:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/typescript-errors-when-upgrading-to-calcite-1-4-x/m-p/1294998#M418</guid>
      <dc:creator>coryeicher</dc:creator>
      <dc:date>2023-06-01T15:18:27Z</dc:date>
    </item>
  </channel>
</rss>

