<?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: Angular 19 build error with exports in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-19-build-error-with-exports/m-p/1564196#M86178</link>
    <description>&lt;P&gt;Thanks for letting us know &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/856827"&gt;@SandroDevos&lt;/a&gt;. We've reproduced the issue and are looking into it.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Dec 2024 17:56:31 GMT</pubDate>
    <dc:creator>AndyGup</dc:creator>
    <dc:date>2024-12-03T17:56:31Z</dc:date>
    <item>
      <title>Angular 19 build error with exports</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-19-build-error-with-exports/m-p/1562622#M86132</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Since updating to Angular 19, we get a build error regarding exports from within the &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/642472"&gt;@ArcGIS&lt;/a&gt;/core package.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;node_modules/@arcgis/core/intl.d.ts:4:1 - error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead.

4 export = intl;
~~~~~~~~~~~~~~
node_modules/@arcgis/core/geometry/projection.d.ts:4:1 - error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead.

4 export = projection;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Package version of @angular is 19, errors happen on both `@arcgis/core` version 4.28.10 and version 4.31.6.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 13:48:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-19-build-error-with-exports/m-p/1562622#M86132</guid>
      <dc:creator>SandroDevos</dc:creator>
      <dc:date>2024-11-26T13:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Angular 19 build error with exports</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-19-build-error-with-exports/m-p/1564196#M86178</link>
      <description>&lt;P&gt;Thanks for letting us know &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/856827"&gt;@SandroDevos&lt;/a&gt;. We've reproduced the issue and are looking into it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 17:56:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-19-build-error-with-exports/m-p/1564196#M86178</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2024-12-03T17:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Angular 19 build error with exports</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-19-build-error-with-exports/m-p/1564360#M86183</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/856827"&gt;@SandroDevos&lt;/a&gt;&amp;nbsp; in tsconfig.json, try setting &lt;SPAN&gt;skipLibCheck to true.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 20:45:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-19-build-error-with-exports/m-p/1564360#M86183</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2024-12-03T20:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Angular 19 build error with exports</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-19-build-error-with-exports/m-p/1570964#M86289</link>
      <description>&lt;P&gt;I have also had this issue.&amp;nbsp; Setting skipLibCheck to true in tsconfig.json did not solve the issue.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;10.53 ✘ [ERROR] TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. [plugin angular-compiler]
10.53
10.53     node_modules/@arcgis/core/geometry/geometryEngine.d.ts:4:0:
10.53       4 │ export = geometryEngine;
10.53         ╵ ~~~~~~~~~~~~~~~~~~~~~~~~
10.53
10.53
10.53 ✘ [ERROR] TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. [plugin angular-compiler]
10.53
10.53     node_modules/@arcgis/core/geometry/geometryEngineAsync.d.ts:4:0:
10.53       4 │ export = geometryEngineAsync;
10.53         ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10.53
10.53
10.53 ✘ [ERROR] TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. [plugin angular-compiler]
10.53
10.53     node_modules/@arcgis/core/geometry/projection.d.ts:4:0:
10.53       4 │ export = projection;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 23 Dec 2024 15:15:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-19-build-error-with-exports/m-p/1570964#M86289</guid>
      <dc:creator>BillMitchell</dc:creator>
      <dc:date>2024-12-23T15:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Angular 19 build error with exports</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-19-build-error-with-exports/m-p/1573900#M86354</link>
      <description>&lt;P&gt;I just updated a project to Angular 19 and am experiencing this same issue using the latest version of&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/642472"&gt;@ArcGIS&lt;/a&gt;/core (4.31.6):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;✘ [ERROR] TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. [plugin angular-compiler]

    node_modules/@arcgis/core/core/reactiveUtils.d.ts:4:0:
      4 │ export = reactiveUtils;
        ╵ ~~~~~~~~~~~~~~~~~~~~~~~&lt;/LI-CODE&gt;&lt;P&gt;Do you have a fix for this yet as I tried setting skipLibCheck to true in tsconfig.json but that didn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 14:02:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-19-build-error-with-exports/m-p/1573900#M86354</guid>
      <dc:creator>JavidYousaf</dc:creator>
      <dc:date>2025-01-09T14:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Angular 19 build error with exports</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-19-build-error-with-exports/m-p/1574024#M86355</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/431912"&gt;@JavidYousaf&lt;/a&gt;and &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/427502"&gt;@BillMitchell&lt;/a&gt;&amp;nbsp; can someone provide a minimal repro sample where skipLibCheck is true and you still see the errors? The core Angular sample is the best starting point: &lt;A href="https://github.com/Esri/jsapi-resources/tree/main/core-samples/jsapi-angular-cli" target="_blank"&gt;https://github.com/Esri/jsapi-resources/tree/main/core-samples/jsapi-angular-cli&lt;/A&gt;. Here's our recommendations for creating and sharing the sample: &lt;A href="https://developers.arcgis.com/javascript/latest/troubleshooting/#minimal-reproducible-application" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/troubleshooting/#minimal-reproducible-application&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 17:14:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-19-build-error-with-exports/m-p/1574024#M86355</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2025-01-09T17:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Angular 19 build error with exports</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-19-build-error-with-exports/m-p/1574270#M86359</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt; I tried my application this morning and it worked - I still had the skipLibCheck enabled in tsconfig.json:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;"skipLibCheck" = true&lt;/LI-CODE&gt;&lt;P&gt;I think restating the console solved the issue, which I didn't do before, so as far as I can see your solution works.&lt;/P&gt;&lt;P&gt;My tsconfg.json looks like this now:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;"compilerOptions": {
    "baseUrl": "./",
    "outDir": "./dist/out-tsc",
    ..... 
    "skipLibCheck": true
  },&lt;/LI-CODE&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 08:35:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/angular-19-build-error-with-exports/m-p/1574270#M86359</guid>
      <dc:creator>JavidYousaf</dc:creator>
      <dc:date>2025-01-10T08:35:59Z</dc:date>
    </item>
  </channel>
</rss>

