<?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 Javacript 3.23 bug with momentjs package? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javacript-3-23-bug-with-momentjs-package/m-p/248677#M23039</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm attempting to use a 3rd party library in a WAB custom widget, and there is a dependency&amp;nbsp;for &lt;A href="https://momentjs.com/"&gt;momentjs&lt;/A&gt;.&amp;nbsp; Moment seems to be packaged with the ESRI Javascript API, but has a different definition for 'main' in init.js than the other packages (notice the .js on the end of it):&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;}, {&lt;BR /&gt; location: "../xstyle",&lt;BR /&gt; name: "xstyle"&lt;BR /&gt; }, {&lt;BR /&gt; location: "../dgrid",&lt;BR /&gt; main: "OnDemandGrid",&lt;BR /&gt; name: "dgrid"&lt;BR /&gt; }, {&lt;BR /&gt; location: "../dgrid1",&lt;BR /&gt; main: "OnDemandGrid",&lt;BR /&gt; name: "dgrid1"&lt;BR /&gt; }, {&lt;BR /&gt; location: "../dstore",&lt;BR /&gt; main: "Store",&lt;BR /&gt; name: "dstore"&lt;BR /&gt; }, {&lt;BR /&gt; location: "../moment",&lt;BR /&gt; &lt;STRONG&gt;main: "moment.js",&lt;/STRONG&gt;&lt;BR /&gt; name: "moment"&lt;BR /&gt; }, {&lt;BR /&gt; location: "../esri",&lt;BR /&gt; name: "esri"&lt;BR /&gt; }, {&lt;BR /&gt; location: ".",&lt;BR /&gt; name: "dojo"&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;When the define line is executed in the 3rd party library, it fails with:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN&gt;GET &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.21%2Fmoment%2F" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/3.21/moment/&lt;/A&gt;&lt;STRONG&gt;moment.js.js&lt;/STRONG&gt; net::ERR_ABORTED&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It seems that the extra .js on moment in init.js is crapping things out&amp;nbsp;and I notice that this has changed in JS API version 4.6..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;I double &lt;A _jive_internal="true" href="https://community.esri.com/thread/213042-javacript-323-bug-with-momentjs-package"&gt;posted&lt;/A&gt; this over on the javascript forum, which is what I thought this was.&amp;nbsp; Admins can delete this post &amp;lt;&amp;lt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Apr 2018 15:29:46 GMT</pubDate>
    <dc:creator>EricO_Neal1</dc:creator>
    <dc:date>2018-04-16T15:29:46Z</dc:date>
    <item>
      <title>Javacript 3.23 bug with momentjs package?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javacript-3-23-bug-with-momentjs-package/m-p/248677#M23039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm attempting to use a 3rd party library in a WAB custom widget, and there is a dependency&amp;nbsp;for &lt;A href="https://momentjs.com/"&gt;momentjs&lt;/A&gt;.&amp;nbsp; Moment seems to be packaged with the ESRI Javascript API, but has a different definition for 'main' in init.js than the other packages (notice the .js on the end of it):&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;}, {&lt;BR /&gt; location: "../xstyle",&lt;BR /&gt; name: "xstyle"&lt;BR /&gt; }, {&lt;BR /&gt; location: "../dgrid",&lt;BR /&gt; main: "OnDemandGrid",&lt;BR /&gt; name: "dgrid"&lt;BR /&gt; }, {&lt;BR /&gt; location: "../dgrid1",&lt;BR /&gt; main: "OnDemandGrid",&lt;BR /&gt; name: "dgrid1"&lt;BR /&gt; }, {&lt;BR /&gt; location: "../dstore",&lt;BR /&gt; main: "Store",&lt;BR /&gt; name: "dstore"&lt;BR /&gt; }, {&lt;BR /&gt; location: "../moment",&lt;BR /&gt; &lt;STRONG&gt;main: "moment.js",&lt;/STRONG&gt;&lt;BR /&gt; name: "moment"&lt;BR /&gt; }, {&lt;BR /&gt; location: "../esri",&lt;BR /&gt; name: "esri"&lt;BR /&gt; }, {&lt;BR /&gt; location: ".",&lt;BR /&gt; name: "dojo"&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;When the define line is executed in the 3rd party library, it fails with:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN&gt;GET &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F3.21%2Fmoment%2F" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/3.21/moment/&lt;/A&gt;&lt;STRONG&gt;moment.js.js&lt;/STRONG&gt; net::ERR_ABORTED&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It seems that the extra .js on moment in init.js is crapping things out&amp;nbsp;and I notice that this has changed in JS API version 4.6..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;I double &lt;A _jive_internal="true" href="https://community.esri.com/thread/213042-javacript-323-bug-with-momentjs-package"&gt;posted&lt;/A&gt; this over on the javascript forum, which is what I thought this was.&amp;nbsp; Admins can delete this post &amp;lt;&amp;lt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2018 15:29:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javacript-3-23-bug-with-momentjs-package/m-p/248677#M23039</guid>
      <dc:creator>EricO_Neal1</dc:creator>
      <dc:date>2018-04-16T15:29:46Z</dc:date>
    </item>
  </channel>
</rss>

