<?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: 4.25 AMD build in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-25-amd-build/m-p/1230946#M79299</link>
    <description>&lt;P&gt;The 4x AMD samples are deprecated as it becomes more difficult to get apps and other modern bits to play nice together. We won't be updating them. You can try updating to the latest dojo utils, with the latest closure compiler.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a fork with 1.17.3 here.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/dojo-util/tree/v1.17.3/esri-3.42.0" target="_blank"&gt;https://github.com/Esri/dojo-util/tree/v1.17.3/esri-3.42.0&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2022 17:54:42 GMT</pubDate>
    <dc:creator>ReneRubalcava</dc:creator>
    <dc:date>2022-11-11T17:54:42Z</dc:date>
    <item>
      <title>4.25 AMD build</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-25-amd-build/m-p/1230775#M79295</link>
      <description>&lt;P&gt;I have an application based off the AMD sample (&lt;A href="https://github.com/Esri/jsapi-resources/tree/master/4.x/amd" target="_blank"&gt;https://github.com/Esri/jsapi-resources/tree/master/4.x/amd&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;When I upgrade the API to version 4.25 I get a few issues, I have tried to resolve them but further issues arise.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;remove "esri/views/2d/engine/webgl/fontUtils", from the mapViewDeps include section (it complained about this file missing)&lt;/LI&gt;&lt;LI&gt;change the optimizeOptions language in from ECMASCRIPT_2019 to ECMASCRIPT_2020 (some of the new codebase uses&amp;nbsp;ECMASCRIPT_2020 features, ??)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;After this I get an exception in the closureCompiler&lt;/P&gt;&lt;P&gt;I then tried bumping the version of dojo-util from &lt;SPAN&gt;git+&lt;A href="https://github.com/Esri/dojo-util.git#1.16.3-esri" target="_blank"&gt;https://github.com/Esri/dojo-util.git#1.16.3-esri&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;to&amp;nbsp;&lt;SPAN&gt;git+&lt;A href="https://github.com/Esri/dojo-util.git#1.17.3-esri" target="_blank"&gt;https://github.com/Esri/dojo-util.git#1.17.3-esri&lt;/A&gt; but the exception is still happening&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;null
  Node(OPTCHAIN_CALL): scheduling.js.uncompressed.js:5:1633
define(["exports","./maybe","./nextTick","./PerformanceSampler","./PooledArray","./promiseUtils","./time"],(function(e,n,t,r,o,s,i){"use strict";let a=function(e){this.phases=e,this.paused=!1,this.ticks=-1,this.removed=!1},c=function(){function e(e){this.callback=e,this.isActive=!0}return e.prototype.remove=function(){this.isActive=!1},e}(),l=0,u=0;const m={time:i.Milliseconds(0),deltaTime:i.Milliseconds(0),elapsedFrameTime:i.Milliseconds(0),frameDuration:i.Milliseconds(0)},d=["prepare","preRender","render","postRender","update","finish"],f=[],p=new o;let h=function(){function e(e){this._task=e}var n=e.prototype;return n.remove=function(){this._task.removed=!0},n.pause=function(){this._task.paused=!0},n.resume=function(){this._task.paused=!1},e}();const k={frameTasks:p,willDispatch:!1,clearFrameTasks:M,dispatch:D,executeFrameTasks:b};function w(e){const n=new c(e);return f.push(n),k.willDispatch||(k.willDispatch=!0,t.nextTick(D)),n}function v(e){const n=new a(e);return p.push(n),null==T&amp;amp;&amp;amp;(l=performance.now(),T=requestAnimationFrame(F)),new h(n)}let T=null;function M(e=!1){p.forAll((e=&amp;gt;{e.removed=!0})),e&amp;amp;&amp;amp;g()}function A(e){u=Math.max(0,e)}function F(){const e=performance.now();T=null,T=p.length&amp;gt;0?requestAnimationFrame(F):null,k.executeFrameTasks(e)}function b(e){const n=i.Milliseconds(e-l);l=e;const t=u&amp;gt;0?u:1e3/60,r=Math.max(0,n-t);for(let o=0;o&amp;lt;d.length;o++){const s=performance.now(),a=d[o];p.forAll((s=&amp;gt;{if(s.paused||s.removed)return;0===o&amp;amp;&amp;amp;s.ticks++;s.phases[a]&amp;amp;&amp;amp;(m.time=e,m.deltaTime=0===s.ticks?i.Milliseconds(0):n,m.elapsedFrameTime=i.Milliseconds(performance.now()-e),m.frameDuration=i.Milliseconds(t-r),s.phases[a]?.call(s,m))})),R[o].record(performance.now()-s)}g(),P.record(performance.now()-e)}const x=new o;function g(){p.forAll((e=&amp;gt;{e.removed&amp;amp;&amp;amp;x.push(e)})),p.removeUnorderedMany(x.data,x.length),x.clear()}function D(){for(;f.length;){const e=n.assumeNonNull(f.shift());e.isActive&amp;amp;&amp;amp;e.callback()}k.willDispatch=!1}function y(e=1,n){const r=s.createResolver(),o=()=&amp;gt;{s.isAborted(n)?r.reject(s.createAbortError()):0===e?r():(--e,t.nextTick((()=&amp;gt;o())))};return o(),r.promise}function _(){const e=s.createResolver(),n=v({postRender:()=&amp;gt;{n.remove(),w(e)}});return e.promise}const R=d.map((e=&amp;gt;new r(e))),P=new r("total");e.FrameTaskHandle=h,e.addFrameTask=v,e.debug=k,e.performanceInfo=R,e.performanceTotal=P,e.schedule=w,e.setFrameDuration=A,e.waitAnimationFrame=_,e.waitTicks=y,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
  Parent(COMMA): scheduling.js.uncompressed.js:5:1489
define(["exports","./maybe","./nextTick","./PerformanceSampler","./PooledArray","./promiseUtils","./time"],(function(e,n,t,r,o,s,i){"use strict";let a=function(e){this.phases=e,this.paused=!1,this.ticks=-1,this.removed=!1},c=function(){function e(e){this.callback=e,this.isActive=!0}return e.prototype.remove=function(){this.isActive=!1},e}(),l=0,u=0;const m={time:i.Milliseconds(0),deltaTime:i.Milliseconds(0),elapsedFrameTime:i.Milliseconds(0),frameDuration:i.Milliseconds(0)},d=["prepare","preRender","render","postRender","update","finish"],f=[],p=new o;let h=function(){function e(e){this._task=e}var n=e.prototype;return n.remove=function(){this._task.removed=!0},n.pause=function(){this._task.paused=!0},n.resume=function(){this._task.paused=!1},e}();const k={frameTasks:p,willDispatch:!1,clearFrameTasks:M,dispatch:D,executeFrameTasks:b};function w(e){const n=new c(e);return f.push(n),k.willDispatch||(k.willDispatch=!0,t.nextTick(D)),n}function v(e){const n=new a(e);return p.push(n),null==T&amp;amp;&amp;amp;(l=performance.now(),T=requestAnimationFrame(F)),new h(n)}let T=null;function M(e=!1){p.forAll((e=&amp;gt;{e.removed=!0})),e&amp;amp;&amp;amp;g()}function A(e){u=Math.max(0,e)}function F(){const e=performance.now();T=null,T=p.length&amp;gt;0?requestAnimationFrame(F):null,k.executeFrameTasks(e)}function b(e){const n=i.Milliseconds(e-l);l=e;const t=u&amp;gt;0?u:1e3/60,r=Math.max(0,n-t);for(let o=0;o&amp;lt;d.length;o++){const s=performance.now(),a=d[o];p.forAll((s=&amp;gt;{if(s.paused||s.removed)return;0===o&amp;amp;&amp;amp;s.ticks++;s.phases[a]&amp;amp;&amp;amp;(m.time=e,m.deltaTime=0===s.ticks?i.Milliseconds(0):n,m.elapsedFrameTime=i.Milliseconds(performance.now()-e),m.frameDuration=i.Milliseconds(t-r),s.phases[a]?.call(s,m))})),R[o].record(performance.now()-s)}g(),P.record(performance.now()-e)}const x=new o;function g(){p.forAll((e=&amp;gt;{e.removed&amp;amp;&amp;amp;x.push(e)})),p.removeUnorderedMany(x.data,x.length),x.clear()}function D(){for(;f.length;){const e=n.assumeNonNull(f.shift());e.isActive&amp;amp;&amp;amp;e.callback()}k.willDispatch=!1}function y(e=1,n){const r=s.createResolver(),o=()=&amp;gt;{s.isAborted(n)?r.reject(s.createAbortError()):0===e?r():(--e,t.nextTick((()=&amp;gt;o())))};return o(),r.promise}function _(){const e=s.createResolver(),n=v({postRender:()=&amp;gt;{n.remove(),w(e)}});return e.promise}const R=d.map((e=&amp;gt;new r(e))),P=new r("total");e.FrameTaskHandle=h,e.addFrameTask=v,e.debug=k,e.performanceInfo=R,e.performanceTotal=P,e.schedule=w,e.setFrameDuration=A,e.waitAnimationFrame=_,e.waitTicks=y,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));

D:\DEV2022\geocirrus\OctonionDojo\dist\esri\core\watchUtils.js:. OPTIMIZER FAILED: JavaException: java.lang.RuntimeException: INTERNAL COMPILER ERROR.
Please report this problem.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will the sample be updated or is there something else I can do to get the latest version to build in AMD? Is there any way to get more verbose messages from the closure compiler?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 01:36:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-25-amd-build/m-p/1230775#M79295</guid>
      <dc:creator>JethroLeevers</dc:creator>
      <dc:date>2022-11-11T01:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: 4.25 AMD build</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-25-amd-build/m-p/1230946#M79299</link>
      <description>&lt;P&gt;The 4x AMD samples are deprecated as it becomes more difficult to get apps and other modern bits to play nice together. We won't be updating them. You can try updating to the latest dojo utils, with the latest closure compiler.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a fork with 1.17.3 here.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/dojo-util/tree/v1.17.3/esri-3.42.0" target="_blank"&gt;https://github.com/Esri/dojo-util/tree/v1.17.3/esri-3.42.0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 17:54:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-25-amd-build/m-p/1230946#M79299</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2022-11-11T17:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: 4.25 AMD build</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-25-amd-build/m-p/1232089#M79337</link>
      <description>&lt;P&gt;Thanks Rene,&lt;/P&gt;&lt;P&gt;The Esri fork of the dojo-util did not work but I had success using the the original.&amp;nbsp;&lt;SPAN&gt;"dojo-util"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"^1.17.3"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 05:37:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-25-amd-build/m-p/1232089#M79337</guid>
      <dc:creator>JethroLeevers</dc:creator>
      <dc:date>2022-11-16T05:37:03Z</dc:date>
    </item>
  </channel>
</rss>

