<?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: 404 module errors in ArcGIS Online Developers Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-developers-questions/404-module-errors/m-p/1338076#M1282</link>
    <description>&lt;P&gt;Did you ever find a fix for this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Oct 2023 00:51:40 GMT</pubDate>
    <dc:creator>GISDepartment7</dc:creator>
    <dc:date>2023-10-16T00:51:40Z</dc:date>
    <item>
      <title>404 module errors</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/404-module-errors/m-p/1121303#M1054</link>
      <description>&lt;P&gt;I'm working on creating a custom widget and getting 404 errors when loading some of the modules. It's getting kind of frustrating. Here's my code:&lt;/P&gt;&lt;P&gt;define(['dojo/_base/declare',&lt;BR /&gt;'jimu/BaseWidget',&lt;BR /&gt;'esri/config',&lt;BR /&gt;'esri/Map',&lt;BR /&gt;'esri/views/MapView',&lt;BR /&gt;'esri/Graphic',&lt;BR /&gt;'esri/layer/GraphicsLayer',&lt;BR /&gt;'esri/widgets/BasemapToggle',&lt;BR /&gt;'esri/layers/FeatueLayer',&lt;BR /&gt;'esri/widgets/Search',&lt;BR /&gt;'esri/geometry/support/webMecatorUtils'],&lt;BR /&gt;function(declare,&lt;BR /&gt;BaseWidget,&lt;BR /&gt;esriConfig,&lt;BR /&gt;Map,&lt;BR /&gt;MapView,&lt;BR /&gt;Graphic,&lt;BR /&gt;GraphicsLayer,&lt;BR /&gt;BasemapToggle,&lt;BR /&gt;FeatueLayer,&lt;BR /&gt;Search,&lt;BR /&gt;webMecatorUtils) {&lt;BR /&gt;//To create a widget, you need to derive from BaseWidget.&lt;BR /&gt;return declare([BaseWidget], {&lt;BR /&gt;// Custom widget code goes here&lt;/P&gt;&lt;P&gt;baseClass: 'jimu-widget-customwidget',&lt;/P&gt;&lt;P&gt;//this property is set by the framework when widget is loaded.&lt;BR /&gt;//name: 'CustomWidget',&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//methods to communication with app container:&lt;/P&gt;&lt;P&gt;postCreate: function() {&lt;BR /&gt;this.inherited(arguments);&lt;BR /&gt;esriConfig.apiKey = "AAPKfea68ae1a29b4910a49caaf684e7cb88U00vbv7ih-yUUj82Xc0P8WvhiF8sgxbqj657tqBEtZhtshNFR_a_FRxY216ANsw";&lt;BR /&gt;const map = new Map({ basemap: "arcgis-navigation"});&lt;BR /&gt;var graphicslayer = new GraphicsLayer();&lt;BR /&gt;map.add(graphicslayer);&lt;/P&gt;&lt;P&gt;var zLatitude = [22.560760, 38.630280, 30.695030];&lt;BR /&gt;var zLongitude = [88.295242, -90.200310, -88.041000];&lt;/P&gt;&lt;P&gt;var simpleMarkerSymbol = {&lt;BR /&gt;type: "simple-marker",&lt;BR /&gt;color: [226, 119, 40],&lt;BR /&gt;size: 14,&lt;BR /&gt;style: "circle"&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;for(i = 0; i &amp;lt; zLatitude.length; i++)&lt;BR /&gt;{&lt;BR /&gt;var point = {&lt;BR /&gt;type: "point",&lt;BR /&gt;longitude: zLongitude[i],&lt;BR /&gt;latitude: zLatitude[i],&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;var pointGraphic = new Graphic({&lt;BR /&gt;geometry: webMecatorUtils.geographicToWebMercator(point),&lt;BR /&gt;symbol: simpleMarkersymbol&lt;BR /&gt;})&lt;BR /&gt;graphicslayer.add(pointGraphic);&lt;BR /&gt;},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get:&amp;nbsp;init.js:36 GET &lt;A href="https://js.arcgis.com/3.37/esri/layer/GraphicsLayer.js" target="_blank" rel="noopener"&gt;https://js.arcgis.com/3.37/esri/layer/GraphicsLayer.js&lt;/A&gt; net::ERR_ABORTED 404.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 16:41:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/404-module-errors/m-p/1121303#M1054</guid>
      <dc:creator>EricPiper</dc:creator>
      <dc:date>2021-11-30T16:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: 404 module errors</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/404-module-errors/m-p/1338076#M1282</link>
      <description>&lt;P&gt;Did you ever find a fix for this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 00:51:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/404-module-errors/m-p/1338076#M1282</guid>
      <dc:creator>GISDepartment7</dc:creator>
      <dc:date>2023-10-16T00:51:40Z</dc:date>
    </item>
  </channel>
</rss>

