<?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: import projection from @arcgis/core in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/import-projection-from-arcgis-core/m-p/1030059#M71853</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import * as projection from '@arcgis/core/geometry/projection'
// or
import { load, project } from '@arcgis/core/geometry/projection'&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 24 Feb 2021 16:45:22 GMT</pubDate>
    <dc:creator>ReneRubalcava</dc:creator>
    <dc:date>2021-02-24T16:45:22Z</dc:date>
    <item>
      <title>import projection from @arcgis/core</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/import-projection-from-arcgis-core/m-p/1029925#M71849</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm having a hard time figuring how to import &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-projection.html#project" target="_blank" rel="noopener"&gt;"projection"&lt;/A&gt; from &lt;A href="https://www.npmjs.com/package/@arcgis/core" target="_self"&gt;"@arcgis/core"&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I've installed it and then I try to import it in my React js app with&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;import projection from '@arcgis/core/geometry/projection'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;But I get an error message :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Attempted import error: '@arcgis/core/geometry/projection' does not contain a default export (imported as 'projection').&lt;/LI-CODE&gt;&lt;P&gt;I don't know how to resolve the thing, when going to "projection.d.ts" there was a line&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;export = projection&lt;/LI-CODE&gt;&lt;P&gt;That I tried to correct to&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;export default projection;&lt;/LI-CODE&gt;&lt;P&gt;But it changed nothing and I'm not really aware of ts yet.&lt;/P&gt;&lt;P&gt;Thanks for your replies !&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 09:03:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/import-projection-from-arcgis-core/m-p/1029925#M71849</guid>
      <dc:creator>ClémentLaskar</dc:creator>
      <dc:date>2021-02-24T09:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: import projection from @arcgis/core</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/import-projection-from-arcgis-core/m-p/1030059#M71853</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import * as projection from '@arcgis/core/geometry/projection'
// or
import { load, project } from '@arcgis/core/geometry/projection'&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 24 Feb 2021 16:45:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/import-projection-from-arcgis-core/m-p/1030059#M71853</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-02-24T16:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: import projection from @arcgis/core</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/import-projection-from-arcgis-core/m-p/1030384#M71858</link>
      <description>&lt;P&gt;Well thanks ! I thought I had to import projection...&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 10:27:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/import-projection-from-arcgis-core/m-p/1030384#M71858</guid>
      <dc:creator>ClémentLaskar</dc:creator>
      <dc:date>2021-02-25T10:27:47Z</dc:date>
    </item>
  </channel>
</rss>

