<?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 TypeScript compilation fails because of not supported feature although JS version is set to ESNEXT in Developer Q&amp;A Forum</title>
    <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/TypeScript-compilation-fails-because-of-not-supported-feature/m-p/204722#M157</link>
    <description>&lt;P&gt;Hi everyone!&lt;/P&gt;
&lt;P&gt;I am trying to use the AWS SDK&amp;nbsp;&lt;SPAN&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/23447"&gt;@aws&lt;/a&gt;-sdk/client-network-firewall&lt;/SPAN&gt;&amp;nbsp; to create a new AWS firewall from our custom dynatrace app. When i start the app I get the following error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Transforming async generator functions to the configured target environment ("es2017") is not supported yet&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;It seems like it thinks that I am using es2017 version of JS but actually I am using the latest one. In tsconfig.json I&lt;/P&gt;
&lt;P&gt;have the default value set for target which is ESNEXT.&lt;/P&gt;
&lt;P&gt;Do you have any ideas why I am getting this error? I added a picture with the whole error output.&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;Markus&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Apr 2023 07:50:09 GMT</pubDate>
    <dc:creator>MarkusHobisch</dc:creator>
    <dc:date>2023-04-20T07:50:09Z</dc:date>
    <item>
      <title>TypeScript compilation fails because of not supported feature although JS version is set to ESNEXT</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/TypeScript-compilation-fails-because-of-not-supported-feature/m-p/204722#M157</link>
      <description>&lt;P&gt;Hi everyone!&lt;/P&gt;
&lt;P&gt;I am trying to use the AWS SDK&amp;nbsp;&lt;SPAN&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/23447"&gt;@aws&lt;/a&gt;-sdk/client-network-firewall&lt;/SPAN&gt;&amp;nbsp; to create a new AWS firewall from our custom dynatrace app. When i start the app I get the following error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Transforming async generator functions to the configured target environment ("es2017") is not supported yet&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;It seems like it thinks that I am using es2017 version of JS but actually I am using the latest one. In tsconfig.json I&lt;/P&gt;
&lt;P&gt;have the default value set for target which is ESNEXT.&lt;/P&gt;
&lt;P&gt;Do you have any ideas why I am getting this error? I added a picture with the whole error output.&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;Markus&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 07:50:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/TypeScript-compilation-fails-because-of-not-supported-feature/m-p/204722#M157</guid>
      <dc:creator>MarkusHobisch</dc:creator>
      <dc:date>2023-04-20T07:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: TypeScript compilation fails because of not supported feature although JS version is set to ESNEXT</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/TypeScript-compilation-fails-because-of-not-supported-feature/m-p/204729#M158</link>
      <description>&lt;P&gt;Hi Markus,&lt;/P&gt;
&lt;P&gt;I could reproduce your issue by adding &lt;CODE&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/23447"&gt;@aws&lt;/a&gt;-sdk/client-network-firewall&lt;/CODE&gt; as a dependency and add the code&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;client&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;NetworkFirewallClient&lt;/SPAN&gt;&lt;SPAN&gt;({});&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;to the UI of the app. This leads to an error like&lt;/P&gt;
&lt;PRE&gt;node_modules/@aws-sdk/client-network-firewall/dist-es/pagination/ListFirewallPoliciesPaginator.js:10: error: Transforming async generator functions to the configured target environment ("es2017") is not supported yet&lt;/PRE&gt;
&lt;P&gt;If I write the same code in an app function, the build succeeds.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on the error, I assume you are using the SDK in the UI code, but this will not work since requests to external systems are not allowed from the UI code, see&amp;nbsp;&lt;A href="https://developer.dynatrace.com/develop/data/access-external-apis/" target="_blank" rel="noopener"&gt;https://developer.dynatrace.com/develop/data/access-external-apis/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Can you try moving your code to an app function and see if it works there?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 May 2023 13:26:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/TypeScript-compilation-fails-because-of-not-supported-feature/m-p/204729#M158</guid>
      <dc:creator>stefan_eggersto</dc:creator>
      <dc:date>2023-05-02T13:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: TypeScript compilation fails because of not supported feature although JS version is set to ESNEXT</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/TypeScript-compilation-fails-because-of-not-supported-feature/m-p/204734#M159</link>
      <description>&lt;P&gt;Thank you very much! It works perfectly in an&amp;nbsp;&lt;SPAN&gt;app&amp;nbsp;&lt;/SPAN&gt;function!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 07:31:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/TypeScript-compilation-fails-because-of-not-supported-feature/m-p/204734#M159</guid>
      <dc:creator>MarkusHobisch</dc:creator>
      <dc:date>2023-04-20T07:31:18Z</dc:date>
    </item>
  </channel>
</rss>

