<?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: TSLib in custom widget in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deprecated-warnings-in-custom-widget/m-p/560169#M52251</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you run a search on your files where you are using&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;tsSupport&lt;SPAN&gt;&amp;nbsp;and paste the code?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;I've also used the demo widgets (as suggested in the tutorial) and don't recall any usage of that class name in the files.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I experienced the same frustration as you do, not too long ago - I had different errors, but the learning curve for the new API is quite big. Switching from classic Javascript to React and TypeScript is overwhelming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I managed to catch up with the syntax and understanding by&amp;nbsp;using the following examples -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/jcfranco/uc-2017-customizing-widgets" title="https://github.com/jcfranco/uc-2017-customizing-widgets"&gt;GitHub - jcfranco/uc-2017-customizing-widgets: Slides and source code for the "ArcGIS API for JavaScript: Customizing Wi…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/jcfranco/uc-2019-customizing-widgets" title="https://github.com/jcfranco/uc-2019-customizing-widgets"&gt;GitHub - jcfranco/uc-2019-customizing-widgets: Slides and source code for the "ArcGIS API for JavaScript: Customizing Wi…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It took many hours of learning, I'm a big believer of the trial and error approach.&lt;/P&gt;&lt;P&gt;Once you&amp;nbsp;understand and follow the way things works when writing in TypeScript and React, it's much smarter and cleaner than classic Javascript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jul 2020 12:51:30 GMT</pubDate>
    <dc:creator>shaylavi</dc:creator>
    <dc:date>2020-07-31T12:51:30Z</dc:date>
    <item>
      <title>Deprecated warnings in custom widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deprecated-warnings-in-custom-widget/m-p/560168#M52250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm creating a custom widget with ArcGIS JS 4.16 using this example:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/widgets-custom-recenter/" title="https://developers.arcgis.com/javascript/latest/sample-code/widgets-custom-recenter/"&gt;Custom Recenter Widget | ArcGIS API for JavaScript 4.16&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;I get these warning messages in DevTools when I run the map containing the widget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/502151_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I click on .(index):115 the ArcGis JS 4.16 index file appears, so I think that it's not my code causing these messages, but is actually a bug in the API. Can anyone confirm this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2020 03:18:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deprecated-warnings-in-custom-widget/m-p/560168#M52250</guid>
      <dc:creator>AndrewTerwiel</dc:creator>
      <dc:date>2020-07-31T03:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: TSLib in custom widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deprecated-warnings-in-custom-widget/m-p/560169#M52251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you run a search on your files where you are using&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;tsSupport&lt;SPAN&gt;&amp;nbsp;and paste the code?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;I've also used the demo widgets (as suggested in the tutorial) and don't recall any usage of that class name in the files.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I experienced the same frustration as you do, not too long ago - I had different errors, but the learning curve for the new API is quite big. Switching from classic Javascript to React and TypeScript is overwhelming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I managed to catch up with the syntax and understanding by&amp;nbsp;using the following examples -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/jcfranco/uc-2017-customizing-widgets" title="https://github.com/jcfranco/uc-2017-customizing-widgets"&gt;GitHub - jcfranco/uc-2017-customizing-widgets: Slides and source code for the "ArcGIS API for JavaScript: Customizing Wi…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/jcfranco/uc-2019-customizing-widgets" title="https://github.com/jcfranco/uc-2019-customizing-widgets"&gt;GitHub - jcfranco/uc-2019-customizing-widgets: Slides and source code for the "ArcGIS API for JavaScript: Customizing Wi…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It took many hours of learning, I'm a big believer of the trial and error approach.&lt;/P&gt;&lt;P&gt;Once you&amp;nbsp;understand and follow the way things works when writing in TypeScript and React, it's much smarter and cleaner than classic Javascript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2020 12:51:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deprecated-warnings-in-custom-widget/m-p/560169#M52251</guid>
      <dc:creator>shaylavi</dc:creator>
      <dc:date>2020-07-31T12:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Deprecated warnings in custom widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deprecated-warnings-in-custom-widget/m-p/560170#M52252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Shay. I think the ArcGIS JS API is the problem. I've edited my question to suit this new idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Aug 2020 23:31:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deprecated-warnings-in-custom-widget/m-p/560170#M52252</guid>
      <dc:creator>AndrewTerwiel</dc:creator>
      <dc:date>2020-08-02T23:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Deprecated warnings in custom widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deprecated-warnings-in-custom-widget/m-p/560171#M52253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These warnings don't show up in the live sample, can you please post a repro app. I copied the tutorial you linked locally as well and don't see these warnings.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/widgets-custom-recenter/live/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/widgets-custom-recenter/live/index.html"&gt;Custom Recenter Widget | Sample | ArcGIS API for JavaScript 4.16&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Aug 2020 23:57:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deprecated-warnings-in-custom-widget/m-p/560171#M52253</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2020-08-02T23:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Deprecated warnings in custom widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deprecated-warnings-in-custom-widget/m-p/560172#M52254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just found that I had another custom widget causing these warnings. Once I'd upgraded that to use the helpers from TSLib, the warnings disappeared. So, you're right the example code is correct and works fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2020 03:07:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deprecated-warnings-in-custom-widget/m-p/560172#M52254</guid>
      <dc:creator>AndrewTerwiel</dc:creator>
      <dc:date>2020-08-03T03:07:35Z</dc:date>
    </item>
  </channel>
</rss>

