<?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 Widgets in ES Modules in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widgets-in-es-modules/m-p/1033129#M71939</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I have some custom widgets I've developed in Typescript. I have the compiled JS file from a TSX file, etc. I'm attempting to bring that into my Angular project that uses ES Modules and have made various edits to my tsconfig file in attempts to support importing my widgets. But I always receive various failures on compile, the latest being "TypeError: Recenter is not a constructor". &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How does one use custom widgets in Angular with ES Modules? Am I better off using Angular directives or components&amp;nbsp;for my custom map elements?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Mar 2021 21:24:52 GMT</pubDate>
    <dc:creator>ScottSteigerwald1</dc:creator>
    <dc:date>2021-03-04T21:24:52Z</dc:date>
    <item>
      <title>Widgets in ES Modules</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widgets-in-es-modules/m-p/1033129#M71939</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have some custom widgets I've developed in Typescript. I have the compiled JS file from a TSX file, etc. I'm attempting to bring that into my Angular project that uses ES Modules and have made various edits to my tsconfig file in attempts to support importing my widgets. But I always receive various failures on compile, the latest being "TypeError: Recenter is not a constructor". &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How does one use custom widgets in Angular with ES Modules? Am I better off using Angular directives or components&amp;nbsp;for my custom map elements?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 21:24:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widgets-in-es-modules/m-p/1033129#M71939</guid>
      <dc:creator>ScottSteigerwald1</dc:creator>
      <dc:date>2021-03-04T21:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Widgets in ES Modules</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widgets-in-es-modules/m-p/1035252#M72011</link>
      <description>&lt;P&gt;Duplicate post - see the github repo for the answer. &lt;A href="https://github.com/Esri/jsapi-resources/issues/277" target="_blank"&gt;https://github.com/Esri/jsapi-resources/issues/277&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 01:02:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/widgets-in-es-modules/m-p/1035252#M72011</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-03-11T01:02:41Z</dc:date>
    </item>
  </channel>
</rss>

