<?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: Why is the API looking for a non-existing jQuery module? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-is-the-api-looking-for-a-non-existing-jquery/m-p/377061#M34974</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That sounds interesting! Could you share the code you used with the pauses at the various breakpoints?&lt;/P&gt;&lt;P&gt;I'll just go from there and dive further in it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Dec 2014 20:58:48 GMT</pubDate>
    <dc:creator>DennisHunink</dc:creator>
    <dc:date>2014-12-23T20:58:48Z</dc:date>
    <item>
      <title>Why is the API looking for a non-existing jQuery module?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-is-the-api-looking-for-a-non-existing-jquery/m-p/377057#M34970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;my implementation of the JS API is failing because dojo is trying to fetch a (non-existing) jQuery.js module on &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://js.arcgis.com/3.12/jquery.js" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/3.12/jquery.js&lt;/A&gt;&lt;SPAN&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Does anyone know any causes for this particular error?&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="43485" alt="Schermafbeelding 2014-12-23 om 20.29.55.png" class="jive-image image-1" src="/legacyfs/online/43485_Schermafbeelding 2014-12-23 om 20.29.55.png" style="width: 620px; height: 177px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A little more details:&lt;/P&gt;&lt;P&gt;The implementation is done on a Wordpress website, were jQuery is included by default. See it in action at &lt;A href="https://tpgrf.nl/testserver/alpha/topotrainer/provincies/" title="https://tpgrf.nl/testserver/alpha/topotrainer/provincies/"&gt;https://tpgrf.nl/testserver/alpha/topotrainer/provincies/&lt;/A&gt;&amp;nbsp; To narrow down the possible causes I created a simple WordPress page with just the js api included: &lt;A href="https://topografieindeklas.nl/pocdojo/"&gt;https://topografieindeklas.nl/pocdojo/&lt;/A&gt;. Same problem here.&lt;BR /&gt;The problem started to occur only after the recent update of WordPress. No WordPress plugins are causing the problem, since it continues to be present, even if all plugins are disabled. A version running WordPress 4.0.1 is live here: &lt;A href="https://topografieindeklas.nl/topotrainer/provincies/" title="https://topografieindeklas.nl/topotrainer/provincies/"&gt;https://topografieindeklas.nl/topotrainer/provincies/&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 19:34:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-is-the-api-looking-for-a-non-existing-jquery/m-p/377057#M34970</guid>
      <dc:creator>DennisHunink</dc:creator>
      <dc:date>2014-12-23T19:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the API looking for a non-existing jQuery module?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-is-the-api-looking-for-a-non-existing-jquery/m-p/377058#M34971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try adding this before the first instance of &lt;STRONG&gt;require&lt;/STRONG&gt; in your code.&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14193649031038145 jive_text_macro" jivemacro_uid="_14193649031038145"&gt;&lt;P&gt;define.amd.jQuery = false;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like jQuery is loading after the EsriJS and jQuery has a line of code in it's loader that looks like&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14193649134068122 jive_text_macro" jivemacro_uid="_14193649134068122"&gt;&lt;P&gt;"function"==typeof define&amp;amp;&amp;amp;define.amd&amp;amp;&amp;amp;define.amd.jQuery&amp;amp;&amp;amp;define("jquery",[],function(){...&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've done this to load jQuery via AMD, but the opposite by setting it to true, so maybe setting it to false will help. Not sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And for the record, your second wordpress link doesn't throw an error in Chrome for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 20:02:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-is-the-api-looking-for-a-non-existing-jquery/m-p/377058#M34971</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2014-12-23T20:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the API looking for a non-existing jQuery module?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-is-the-api-looking-for-a-non-existing-jquery/m-p/377059#M34972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rene! Really appreciate your quick reply!&lt;/P&gt;&lt;P&gt;I've implemented your suggestion as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN&gt;&amp;lt;link rel="stylesheet" href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://js.arcgis.com/3.12/esri/css/esri.css" rel="nofollow noopener noreferrer" target="_blank"&gt;https://js.arcgis.com/3.12/esri/css/esri.css&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;
&amp;lt;script type="text/javascript"&amp;gt;var dojoConfig = {parseOnLoad: true, isDebug: true, async: false};&amp;nbsp; &amp;lt;/script&amp;gt;
&lt;SPAN&gt;&amp;lt;script src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://js.arcgis.com/3.12compact/" rel="nofollow noopener noreferrer" target="_blank"&gt;https://js.arcgis.com/3.12compact/&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;
&amp;lt;script type="text/javascript"&amp;gt;define.amd.jQuery = false;&amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately this doesn't solve my problem, see the screenshot below (Chrome Console):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Schermafbeelding 2014-12-23 om 21.09.07.png" class="jive-image image-1" src="/legacyfs/online/43487_Schermafbeelding 2014-12-23 om 21.09.07.png" style="width: 620px; height: 484px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:24:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-is-the-api-looking-for-a-non-existing-jquery/m-p/377059#M34972</guid>
      <dc:creator>DennisHunink</dc:creator>
      <dc:date>2021-12-11T17:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the API looking for a non-existing jQuery module?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-is-the-api-looking-for-a-non-existing-jquery/m-p/377060#M34973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's odd. It could be timing issue. You could try moving the &lt;EM&gt;require()&lt;/EM&gt; statement inside the the &lt;EM&gt;jQuery(document).ready(function($) {})&lt;/EM&gt; method, still setting &lt;EM&gt;define.amd.jQuery = false;&lt;/EM&gt; If I step through with breakpoints at the&lt;EM&gt; jQuery(document), $("#selectProvinceListShortcode")&lt;/EM&gt; and &lt;EM&gt;require()&lt;/EM&gt; and wait a sec between each breakpoint, your map and page load without errror, so I'm thinking that means the timing is off with those.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, it worked without even setting the define.amd.jQuery = false, so you could probably remove that if it works in the ready method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would probably go a step further and move all your jQuery stuff inside the the require method, don't even worry about jQuery(document) as the dojo/domReady! module does the same thing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 20:38:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-is-the-api-looking-for-a-non-existing-jquery/m-p/377060#M34973</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2014-12-23T20:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the API looking for a non-existing jQuery module?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-is-the-api-looking-for-a-non-existing-jquery/m-p/377061#M34974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That sounds interesting! Could you share the code you used with the pauses at the various breakpoints?&lt;/P&gt;&lt;P&gt;I'll just go from there and dive further in it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 20:58:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-is-the-api-looking-for-a-non-existing-jquery/m-p/377061#M34974</guid>
      <dc:creator>DennisHunink</dc:creator>
      <dc:date>2014-12-23T20:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the API looking for a non-existing jQuery module?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-is-the-api-looking-for-a-non-existing-jquery/m-p/377062#M34975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using &lt;A href="https://developer.chrome.com/devtools"&gt;Chrome DevTools&lt;/A&gt; and placed &lt;A href="https://developer.chrome.com/devtools/docs/javascript-debugging#breakpoints"&gt;breakpoints&lt;/A&gt; at those three lines I mentioned.&lt;IMG alt="image.jpg" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/43378_image.jpg" style="width: 620px; height: 204px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 21:05:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-is-the-api-looking-for-a-non-existing-jquery/m-p/377062#M34975</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2014-12-23T21:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the API looking for a non-existing jQuery module?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-is-the-api-looking-for-a-non-existing-jquery/m-p/377063#M34976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Weird. I don't seem to get it running....&lt;/P&gt;&lt;P&gt;Anyway, I just restored an backup from a couple of days ago in a different folder: &lt;A href="https://topografieindeklas.nl/restore/topotrainer/provincies/" title="https://topografieindeklas.nl/restore/topotrainer/provincies/"&gt;Oefen de Topografie van Nederland per provincie&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That one works like a charm. Only thing I've changed since then is upgrading WordPress from 4.0.1 to 4.1. I do believe you're right about the timing issue. Does it makes any sense to you, comparing the restored backup to the false website on &lt;A href="https://tpgrf.nl/testserver/alpha/topotrainer/provincies/" title="https://tpgrf.nl/testserver/alpha/topotrainer/provincies/"&gt;https://tpgrf.nl/testserver/alpha/topotrainer/provincies/&lt;/A&gt; ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 21:35:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-is-the-api-looking-for-a-non-existing-jquery/m-p/377063#M34976</guid>
      <dc:creator>DennisHunink</dc:creator>
      <dc:date>2014-12-23T21:35:54Z</dc:date>
    </item>
  </channel>
</rss>

