<?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: Module not found: Can't resolve 'esri/Map' When Using @types/arcgis-js-api in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/module-not-found-can-t-resolve-esri-map-when-using/m-p/1117716#M75316</link>
    <description>&lt;P&gt;Ok, I see. That doc is for building a pure TypeScript project using the CDN. For create-react-app, you don't need to install the typings. Check out this sample here. It's not in TS, but same rules apply, you can use the default tsconfig from create-react-app and still be ok.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-create-react-app" target="_blank"&gt;https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-create-react-app&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Nov 2021 15:27:09 GMT</pubDate>
    <dc:creator>ReneRubalcava</dc:creator>
    <dc:date>2021-11-17T15:27:09Z</dc:date>
    <item>
      <title>Module not found: Can't resolve 'esri/Map' When Using @types/arcgis-js-api</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/module-not-found-can-t-resolve-esri-map-when-using/m-p/1117460#M75309</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Created a simple react app using Create-React-App, installed the&amp;nbsp;@types/arcgis-js-api following the ts setup instructions in dev portal.&amp;nbsp; Continue to get&amp;nbsp;Module not found: Can't resolve 'esri/Map' .&amp;nbsp; Here are the import statements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt; &lt;SPAN&gt;EsriMap&lt;/SPAN&gt; &lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;'esri/Map'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt; &lt;SPAN&gt;MapView&lt;/SPAN&gt; &lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;'esri/views/MapView'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Ive tried deleting node_modules and package-lock.json.&amp;nbsp; Made sure skipLibCheck : true in the tsconfig.&amp;nbsp; Tried creating a new project, same result.&amp;nbsp; Please help.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 21:52:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/module-not-found-can-t-resolve-esri-map-when-using/m-p/1117460#M75309</guid>
      <dc:creator>jpb412</dc:creator>
      <dc:date>2021-11-16T21:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Module not found: Can't resolve 'esri/Map' When Using @types/arcgis-js-api</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/module-not-found-can-t-resolve-esri-map-when-using/m-p/1117471#M75310</link>
      <description>&lt;P&gt;Are you using the AMD package arcgis-js-api or the ESM package&amp;nbsp;@arcgis/core?&lt;/P&gt;&lt;P&gt;You don't need the typings installed separately in either case, they’ll&amp;nbsp; come with the packages. I'm curious what your package.json and project looks like that you need the typings?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 22:37:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/module-not-found-can-t-resolve-esri-map-when-using/m-p/1117471#M75310</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-11-16T22:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Module not found: Can't resolve 'esri/Map' When Using @types/arcgis-js-api</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/module-not-found-can-t-resolve-esri-map-when-using/m-p/1117506#M75311</link>
      <description>&lt;P&gt;Hey, thanks for the response.&amp;nbsp; I should have mentioned that this is a typescript react app.&amp;nbsp; I basically was just following this from your documentation since I am just getting started with your js sdk.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/typescript-setup/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/typescript-setup/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If its fine to just use the ESM package instead of using the types mentioned in the documentation above I can do that.&amp;nbsp; Let me know what you suggest.&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dependencies from package.json&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"dependencies"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"@testing-library/jest-dom"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"^5.15.0"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"@testing-library/react"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"^11.2.7"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN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N&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"web-vitals"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"^1.1.2"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 17 Nov 2021 00:56:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/module-not-found-can-t-resolve-esri-map-when-using/m-p/1117506#M75311</guid>
      <dc:creator>jpb412</dc:creator>
      <dc:date>2021-11-17T00:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Module not found: Can't resolve 'esri/Map' When Using @types/arcgis-js-api</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/module-not-found-can-t-resolve-esri-map-when-using/m-p/1117716#M75316</link>
      <description>&lt;P&gt;Ok, I see. That doc is for building a pure TypeScript project using the CDN. For create-react-app, you don't need to install the typings. Check out this sample here. It's not in TS, but same rules apply, you can use the default tsconfig from create-react-app and still be ok.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-create-react-app" target="_blank"&gt;https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-create-react-app&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 15:27:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/module-not-found-can-t-resolve-esri-map-when-using/m-p/1117716#M75316</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-11-17T15:27:09Z</dc:date>
    </item>
  </channel>
</rss>

