<?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: Problem with custom build of v3.16 app in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-custom-build-of-v3-16-app/m-p/515367#M48067</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using bower to generate a custom build or the Web Optimizer?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lloyd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Mar 2016 17:20:40 GMT</pubDate>
    <dc:creator>LloydHeberlie</dc:creator>
    <dc:date>2016-03-16T17:20:40Z</dc:date>
    <item>
      <title>Problem with custom build of v3.16 app</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-custom-build-of-v3-16-app/m-p/515366#M48066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone out there done a successful build an app using the version 3.16? &lt;/P&gt;&lt;P&gt;For some reason, dojo's build system doesn't seem to like &lt;A href="http://momentjs.com/" rel="nofollow noopener noreferrer" target="_blank"&gt;moment.js&lt;/A&gt;​, which appears to be a dependency of 3.16.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first error that I get in my build report is:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;moment.js.uncompressed.js:9: ERROR - Parse error. '}' expected
import { hooks as moment, setHookCallback } from './lib/utils/hooks';
^

1 error(s), 0 warning(s)
Done (compile time:0.114s)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are many other errors as well, all associated with the moment library. I took a cursory look at the library.&amp;nbsp;&amp;nbsp; It appears as thought it was written using ES6 syntax.&amp;nbsp; Not sure if this a problem for the build system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone else having luck with 3.16 builds?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/6443" target="_blank"&gt;Rene Rubalcava&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3037" target="_blank"&gt;Lloyd Heberlie&lt;/A&gt;​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:30:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-custom-build-of-v3-16-app/m-p/515366#M48066</guid>
      <dc:creator>BillDaigle</dc:creator>
      <dc:date>2021-12-11T22:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with custom build of v3.16 app</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-custom-build-of-v3-16-app/m-p/515367#M48067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using bower to generate a custom build or the Web Optimizer?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lloyd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 17:20:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-custom-build-of-v3-16-app/m-p/515367#M48067</guid>
      <dc:creator>LloydHeberlie</dc:creator>
      <dc:date>2016-03-16T17:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with custom build of v3.16 app</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-custom-build-of-v3-16-app/m-p/515368#M48068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bower and grunt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 17:21:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-custom-build-of-v3-16-app/m-p/515368#M48068</guid>
      <dc:creator>BillDaigle</dc:creator>
      <dc:date>2016-03-16T17:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with custom build of v3.16 app</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-custom-build-of-v3-16-app/m-p/515369#M48069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The inclusion of the moment lib requires a little extra steps in the Dojo build profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this sample here.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/jsapi-resources/blob/master/bower/dojo/build.profile.js#L48-L54" title="https://github.com/Esri/jsapi-resources/blob/master/bower/dojo/build.profile.js#L48-L54" rel="nofollow noopener noreferrer" target="_blank"&gt;jsapi-resources/build.profile.js at master · Esri/jsapi-resources · GitHub&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp; packages: [
&amp;nbsp;&amp;nbsp;&amp;nbsp; // 'app' is a sample path for your application
&amp;nbsp;&amp;nbsp;&amp;nbsp; // set this accordingly
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'app',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dijit',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dojo',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dojox',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dstore',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dgrid',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'xstyle',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'put-selector',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'esri', {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name: 'moment',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; location: 'moment',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main: 'moment',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trees: [
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // don't bother with .hidden, tests, min, src, and templates
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [".", ".", /(\/\.)|(~$)|(test|txt|src|min|templates)/]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp; ],&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you bower install moment, it will build fine, but you have to tell Dojo where to find it and also what files to ignore, which is what that &lt;STRONG&gt;trees&lt;/STRONG&gt; property does for the package.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:30:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-custom-build-of-v3-16-app/m-p/515369#M48069</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-12-11T22:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with custom build of v3.16 app</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-custom-build-of-v3-16-app/m-p/515370#M48070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bingo!&amp;nbsp; Error free now.&amp;nbsp; Thanks Rene!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 18:06:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-custom-build-of-v3-16-app/m-p/515370#M48070</guid>
      <dc:creator>BillDaigle</dc:creator>
      <dc:date>2016-03-16T18:06:17Z</dc:date>
    </item>
  </channel>
</rss>

