<?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: ArcGIS SDK &amp;gt; 4.15 MapView is not a constructor in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-sdk-gt-4-15-mapview-is-not-a-constructor/m-p/1335168#M82401</link>
    <description>&lt;P&gt;I followed Gavin's advice above and got my map to render just fine. However, commenting out the jquery and bootstrap references&amp;nbsp; in the_Layout page disabled the other bootstrap objects my app was using. For example, bootstrap tabs and collapse items no longer functioned. Any thoughts or advice? Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Oct 2023 20:49:32 GMT</pubDate>
    <dc:creator>JDonoghue</dc:creator>
    <dc:date>2023-10-04T20:49:32Z</dc:date>
    <item>
      <title>ArcGIS SDK &gt; 4.15 MapView is not a constructor</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-sdk-gt-4-15-mapview-is-not-a-constructor/m-p/1302254#M81483</link>
      <description>&lt;P&gt;The below code works when launched when created as an html page in notepad. However, once I try to deploy as part of a Asp.net Core project it will not display unless i change the Arcgis SDK down to 4.15. Anything greater than SDK 4.16 will not work. Can't find any reason for this on the web. Below code returns error: Uncaught TypeError: MapView is not a constructor.&lt;/P&gt;&lt;P&gt;```&lt;BR /&gt;&amp;lt;link rel="stylesheet" href="&lt;A href="https://js.arcgis.com/4.27/esri/themes/light/main.css" target="_blank" rel="noopener"&gt;https://js.arcgis.com/4.27/esri/themes/light/main.css&lt;/A&gt;" /&amp;gt;&lt;BR /&gt;&amp;lt;script src="&lt;A href="https://js.arcgis.com/4.27/" target="_blank" rel="noopener"&gt;https://js.arcgis.com/4.27/&lt;/A&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;style&amp;gt;&lt;BR /&gt;html,&lt;BR /&gt;body,&lt;BR /&gt;#viewDiv {&lt;BR /&gt;padding: 0;&lt;BR /&gt;margin: 0;&lt;BR /&gt;height: 100%;&lt;BR /&gt;width: 100%;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;&lt;BR /&gt;require(["esri/WebMap", "esri/views/MapView", "esri/widgets/Editor"], (&lt;BR /&gt;WebMap,&lt;BR /&gt;MapView,&lt;BR /&gt;Editor&lt;BR /&gt;) =&amp;gt; {&lt;BR /&gt;// Create a map from the referenced webmap item id&lt;BR /&gt;const webmap = new WebMap({&lt;BR /&gt;portalItem: {&lt;BR /&gt;id: "4793230052ed498ebf1c7bed9966bd35"&lt;BR /&gt;}&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;const view = new MapView({&lt;BR /&gt;container: "viewDiv",&lt;BR /&gt;map: webmap&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;view.when(() =&amp;gt; {&lt;BR /&gt;const editor = new Editor({&lt;BR /&gt;view: view&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;// Add the widget to the view&lt;BR /&gt;view.ui.add(editor, "top-right");&lt;BR /&gt;});&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 21:58:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-sdk-gt-4-15-mapview-is-not-a-constructor/m-p/1302254#M81483</guid>
      <dc:creator>GavinBoyd</dc:creator>
      <dc:date>2023-06-22T21:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS SDK &gt; 4.15 MapView is not a constructor</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-sdk-gt-4-15-mapview-is-not-a-constructor/m-p/1302272#M81484</link>
      <description>&lt;P&gt;You may be able to resolve this conflict by moving your two script tags to the bottom of the document (e.g. just before the closing tag for the body).&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 22:35:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-sdk-gt-4-15-mapview-is-not-a-constructor/m-p/1302272#M81484</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-06-22T22:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS SDK &gt; 4.15 MapView is not a constructor</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-sdk-gt-4-15-mapview-is-not-a-constructor/m-p/1302315#M81486</link>
      <description>&lt;P&gt;Thanks for the comment &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6522"&gt;@JoelBennett&lt;/a&gt;&amp;nbsp;. By moving&amp;nbsp;&amp;lt;script src="&lt;A href="https://js.arcgis.com/4.27/" target="_blank" rel="noopener"&gt;https://js.arcgis.com/4.27/&lt;/A&gt;"&amp;gt;&amp;lt;/script&amp;gt; just above the div it eliminates the constructor error but then I get the following error:&lt;/P&gt;&lt;P&gt;Uncaught ReferenceError: require is not defined&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 01:14:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-sdk-gt-4-15-mapview-is-not-a-constructor/m-p/1302315#M81486</guid>
      <dc:creator>GavinBoyd</dc:creator>
      <dc:date>2023-06-23T01:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS SDK &gt; 4.15 MapView is not a constructor</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-sdk-gt-4-15-mapview-is-not-a-constructor/m-p/1302317#M81488</link>
      <description>&lt;P&gt;It sounds like you may have reversed the order of your script tags, making what used to be first one now the second.&amp;nbsp; However, the "shorter" script tag needs to come before the "longer" one.&amp;nbsp; Basically, you'll have this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;&amp;lt;script src="https://js.arcgis.com/4.27/"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
	require(["esri/WebMap", "esri/views/MapView", "esri/widgets/Editor"], (
	//and the rest of the code
&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then you should try moving those two as low in the document as possible (preferably right before the &amp;lt;/body&amp;gt; tag).&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 01:03:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-sdk-gt-4-15-mapview-is-not-a-constructor/m-p/1302317#M81488</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-06-23T01:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS SDK &gt; 4.15 MapView is not a constructor</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-sdk-gt-4-15-mapview-is-not-a-constructor/m-p/1302323#M81490</link>
      <description>&lt;P&gt;Yes, that was a silly error from me, thanks for clarifying. However, it hasn't fixed my problem, unfortunately. The key to my issue lies in how visual studio and or my Asp.Net Core Web App seems to deal with the different js.arcgis.com/4XX versions. The code above works fine with sdk 4.15 but the moment I try to upgrade it to 4.16 or higher it returns the 'not a constructor' error. It is as though visual studio or my app just can't read the sdk reference or the require tags. Any thoughts what might be causing this or a suggested workaround?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 02:10:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-sdk-gt-4-15-mapview-is-not-a-constructor/m-p/1302323#M81490</guid>
      <dc:creator>GavinBoyd</dc:creator>
      <dc:date>2023-06-23T02:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS SDK &gt; 4.15 MapView is not a constructor</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-sdk-gt-4-15-mapview-is-not-a-constructor/m-p/1302660#M81510</link>
      <description>&lt;P&gt;Unfortunately, I don't think I'll be able to offer much else here.&amp;nbsp; I remember a project a co-worker was working on had an issue resembling this one, and our solution at the time was to do what I described above.&amp;nbsp; It seemed like some other components on the page had their own version of a "require" function which was causing the conflict, but that's about all I recall.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 21:24:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-sdk-gt-4-15-mapview-is-not-a-constructor/m-p/1302660#M81510</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-06-23T21:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS SDK &gt; 4.15 MapView is not a constructor</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-sdk-gt-4-15-mapview-is-not-a-constructor/m-p/1302707#M81511</link>
      <description>&lt;P&gt;No problem. Thank you for trying to help, anyway. Cheers&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2023 02:59:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-sdk-gt-4-15-mapview-is-not-a-constructor/m-p/1302707#M81511</guid>
      <dc:creator>GavinBoyd</dc:creator>
      <dc:date>2023-06-24T02:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS SDK &gt; 4.15 MapView is not a constructor</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-sdk-gt-4-15-mapview-is-not-a-constructor/m-p/1302742#M81517</link>
      <description>&lt;P&gt;Had a hunch that this had something to with my page/view references conflicting js. By doing the following sdk 4.27 is no working.&lt;/P&gt;&lt;P&gt;The way I got around was to comment out this section of the shared Asp.net Core App _layout.cshtml view&lt;/P&gt;&lt;P&gt;&amp;lt;script src="~/lib/jquery/dist/jquery.min.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;script src="~/js/site.js" asp-append-version="true"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;@RenderSection("Scripts", required: false)&lt;/P&gt;&lt;P&gt;As it appears to conflict with any arcgis sdk of higher than 4.15&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2023 00:06:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-sdk-gt-4-15-mapview-is-not-a-constructor/m-p/1302742#M81517</guid>
      <dc:creator>GavinBoyd</dc:creator>
      <dc:date>2023-06-25T00:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS SDK &gt; 4.15 MapView is not a constructor</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-sdk-gt-4-15-mapview-is-not-a-constructor/m-p/1335168#M82401</link>
      <description>&lt;P&gt;I followed Gavin's advice above and got my map to render just fine. However, commenting out the jquery and bootstrap references&amp;nbsp; in the_Layout page disabled the other bootstrap objects my app was using. For example, bootstrap tabs and collapse items no longer functioned. Any thoughts or advice? Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 20:49:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-sdk-gt-4-15-mapview-is-not-a-constructor/m-p/1335168#M82401</guid>
      <dc:creator>JDonoghue</dc:creator>
      <dc:date>2023-10-04T20:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS SDK &gt; 4.15 MapView is not a constructor</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-sdk-gt-4-15-mapview-is-not-a-constructor/m-p/1375281#M83478</link>
      <description>&lt;P&gt;I got the same error in an .NET8 ASP.NET Core MVC project and was able to fix it for &lt;A href="https://js.arcgis.com/4.28/" target="_blank"&gt;ArcGIS JS 4.28&lt;/A&gt; by ensuring the ArcGIS script was loaded after bootstrap.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 06:01:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-sdk-gt-4-15-mapview-is-not-a-constructor/m-p/1375281#M83478</guid>
      <dc:creator>Steve_</dc:creator>
      <dc:date>2024-01-29T06:01:43Z</dc:date>
    </item>
  </channel>
</rss>

