<?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: typescript error creating MapView from TypeScript in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-error-creating-mapview-from-typescript/m-p/1629872#M87322</link>
    <description>&lt;P&gt;Thanks for your reply. Yes, it looks like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const webmap = new WebMap({
  portalItem: {
    id: "43b93cc9be994efbb5a60a2b2d85f151"
  }
})
const view = new MapView({
  container: mapDiv.current,
  // Type 'WebMap' is not assignable to type 'MapProperties'.
  map: map
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder if I'm missing something in my VSCode configuration then?&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jul 2025 14:33:16 GMT</pubDate>
    <dc:creator>john_cartwright_noaa</dc:creator>
    <dc:date>2025-07-03T14:33:16Z</dc:date>
    <item>
      <title>typescript error creating MapView from TypeScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-error-creating-mapview-from-typescript/m-p/1629701#M87317</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;Can someone tell me how to address the following TypeScript error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; const view = new MapView({
        container: mapDiv.current,
        // ERROR: "Type 'WebMap' is not assignable to type 'MapProperties'."
        map: webmap
      });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JSAPI version 4.33&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 01:14:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-error-creating-mapview-from-typescript/m-p/1629701#M87317</guid>
      <dc:creator>john_cartwright_noaa</dc:creator>
      <dc:date>2025-07-03T01:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: typescript error creating MapView from TypeScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-error-creating-mapview-from-typescript/m-p/1629822#M87321</link>
      <description>&lt;P&gt;Is your webmap constructed using `new Webmap`? I don't get a typescript error in my application using arcgis 4.33 with equivalent code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 12:52:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-error-creating-mapview-from-typescript/m-p/1629822#M87321</guid>
      <dc:creator>JonathanDawe_BAS</dc:creator>
      <dc:date>2025-07-03T12:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: typescript error creating MapView from TypeScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-error-creating-mapview-from-typescript/m-p/1629872#M87322</link>
      <description>&lt;P&gt;Thanks for your reply. Yes, it looks like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const webmap = new WebMap({
  portalItem: {
    id: "43b93cc9be994efbb5a60a2b2d85f151"
  }
})
const view = new MapView({
  container: mapDiv.current,
  // Type 'WebMap' is not assignable to type 'MapProperties'.
  map: map
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder if I'm missing something in my VSCode configuration then?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 14:33:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-error-creating-mapview-from-typescript/m-p/1629872#M87322</guid>
      <dc:creator>john_cartwright_noaa</dc:creator>
      <dc:date>2025-07-03T14:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: typescript error creating MapView from TypeScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-error-creating-mapview-from-typescript/m-p/1629975#M87323</link>
      <description>&lt;P&gt;Tried this out with a new vite TS app and not seeing this. Could you try deleting your node_modules/package-lock.json/yarn.lock and try again? If you have a github repro, can take a look.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 16:23:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-error-creating-mapview-from-typescript/m-p/1629975#M87323</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2025-07-03T16:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: typescript error creating MapView from TypeScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-error-creating-mapview-from-typescript/m-p/1630160#M87324</link>
      <description>&lt;P&gt;Thanks for the suggestion and your offer to help Rene. Re-creating the node_modules and package-lock.json file did not seem to help.&lt;/P&gt;&lt;P&gt;Here's the repo:&amp;nbsp;&lt;A href="mailto:git@github.com:CI-CMG/pointstore-dashboard.git" target="_blank"&gt;git@github.com:CI-CMG/pointstore-dashboard.git&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 20:41:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-error-creating-mapview-from-typescript/m-p/1630160#M87324</guid>
      <dc:creator>john_cartwright_noaa</dc:creator>
      <dc:date>2025-07-03T20:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: typescript error creating MapView from TypeScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-error-creating-mapview-from-typescript/m-p/1630163#M87325</link>
      <description>&lt;P&gt;Found it! You have the old AMD types installed too, remove those and you should be good.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/CI-CMG/pointstore-dashboard/blob/main/package.json#L21" target="_blank" rel="noopener"&gt;https://github.com/CI-CMG/pointstore-dashboard/blob/main/package.json#L21&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Probably want to remove "src" from includes in the node tsconfig too&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/CI-CMG/pointstore-dashboard/blob/main/tsconfig.node.json#L27" target="_blank" rel="noopener"&gt;https://github.com/CI-CMG/pointstore-dashboard/blob/main/tsconfig.node.json#L27&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 21:18:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-error-creating-mapview-from-typescript/m-p/1630163#M87325</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2025-07-03T21:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: typescript error creating MapView from TypeScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-error-creating-mapview-from-typescript/m-p/1630173#M87326</link>
      <description>&lt;P&gt;Thank you Rene - that's really helpful!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 21:41:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/typescript-error-creating-mapview-from-typescript/m-p/1630173#M87326</guid>
      <dc:creator>john_cartwright_noaa</dc:creator>
      <dc:date>2025-07-03T21:41:10Z</dc:date>
    </item>
  </channel>
</rss>

