<?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 esri-loader.js generates  in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-loader-js-generates/m-p/316609#M29163</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on a web application which used Vue framework. I am following the code snippet in this link to authenticate the user.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/identity-oauth-basic/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/identity-oauth-basic/index.html"&gt;Access ArcGIS Online items using OAuthentication | ArcGIS API for JavaScript 4.16&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Below is my version.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;import { loadModules } from 'esri-loader'&lt;BR /&gt;export default {&lt;BR /&gt; name: 'Home',&lt;BR /&gt; selectedAgol: '',&lt;BR /&gt; data () {&lt;BR /&gt; return { &lt;BR /&gt; }&lt;BR /&gt; },&lt;BR /&gt; mounted(){&lt;BR /&gt; loadModules('esri/identity/IdentityManager', 'esri/identity/OAuthInfo').then(([esriId, OAuthInfo]) =&amp;gt; {&lt;BR /&gt; const info = new OAuthInfo({&lt;BR /&gt; appId: "fdksdofiwue3wmerf",&lt;BR /&gt; portalUrl: "https://www.arcgis.com/sharing/rest/oauth2/authorize/",&lt;BR /&gt; popup: false&lt;BR /&gt; });&lt;BR /&gt; esriId.registerOAuthInfos([info]);&lt;BR /&gt; esriId&lt;BR /&gt; .checkSignInStatus(info.portalUrl + "/sharing")&lt;BR /&gt; .then(function () {&lt;BR /&gt; displayItems();&lt;BR /&gt; })&lt;BR /&gt; .catch(function () {&lt;BR /&gt; // Anonymous view&lt;BR /&gt; anonPanelElement.style.display = "block";&lt;BR /&gt; personalPanelElement.style.display = "none";&lt;BR /&gt; });&lt;BR /&gt; })&lt;BR /&gt; }&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script generates the following error.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Uncaught (in promise) Error: undefinedModule&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; at p (dojo.js:5)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; at ba (dojo.js:11)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; at v (dojo.js:5)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; at eval (esri-loader.js?31e8:237)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; at new Promise (&amp;lt;anonymous&amp;gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; at requireModules (esri-loader.js?31e8:234)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; at loadModules (esri-loader.js?31e8:268)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; at VueComponent.mounted (Home.vue?5584:492)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; at invokeWithErrorHandling (vue.esm.js?efeb:1863)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; at callHook (vue.esm.js?efeb:4228)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I very much appreciate any suggestion you may have.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jul 2020 02:06:36 GMT</pubDate>
    <dc:creator>FardoshtAmirpanahi2</dc:creator>
    <dc:date>2020-07-16T02:06:36Z</dc:date>
    <item>
      <title>esri-loader.js generates</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-loader-js-generates/m-p/316609#M29163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on a web application which used Vue framework. I am following the code snippet in this link to authenticate the user.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/identity-oauth-basic/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/identity-oauth-basic/index.html"&gt;Access ArcGIS Online items using OAuthentication | ArcGIS API for JavaScript 4.16&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Below is my version.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;import { loadModules } from 'esri-loader'&lt;BR /&gt;export default {&lt;BR /&gt; name: 'Home',&lt;BR /&gt; selectedAgol: '',&lt;BR /&gt; data () {&lt;BR /&gt; return { &lt;BR /&gt; }&lt;BR /&gt; },&lt;BR /&gt; mounted(){&lt;BR /&gt; loadModules('esri/identity/IdentityManager', 'esri/identity/OAuthInfo').then(([esriId, OAuthInfo]) =&amp;gt; {&lt;BR /&gt; const info = new OAuthInfo({&lt;BR /&gt; appId: "fdksdofiwue3wmerf",&lt;BR /&gt; portalUrl: "https://www.arcgis.com/sharing/rest/oauth2/authorize/",&lt;BR /&gt; popup: false&lt;BR /&gt; });&lt;BR /&gt; esriId.registerOAuthInfos([info]);&lt;BR /&gt; esriId&lt;BR /&gt; .checkSignInStatus(info.portalUrl + "/sharing")&lt;BR /&gt; .then(function () {&lt;BR /&gt; displayItems();&lt;BR /&gt; })&lt;BR /&gt; .catch(function () {&lt;BR /&gt; // Anonymous view&lt;BR /&gt; anonPanelElement.style.display = "block";&lt;BR /&gt; personalPanelElement.style.display = "none";&lt;BR /&gt; });&lt;BR /&gt; })&lt;BR /&gt; }&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script generates the following error.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Uncaught (in promise) Error: undefinedModule&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; at p (dojo.js:5)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; at ba (dojo.js:11)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; at v (dojo.js:5)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; at eval (esri-loader.js?31e8:237)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; at new Promise (&amp;lt;anonymous&amp;gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; at requireModules (esri-loader.js?31e8:234)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; at loadModules (esri-loader.js?31e8:268)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; at VueComponent.mounted (Home.vue?5584:492)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; at invokeWithErrorHandling (vue.esm.js?efeb:1863)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; at callHook (vue.esm.js?efeb:4228)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I very much appreciate any suggestion you may have.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2020 02:06:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-loader-js-generates/m-p/316609#M29163</guid>
      <dc:creator>FardoshtAmirpanahi2</dc:creator>
      <dc:date>2020-07-16T02:06:36Z</dc:date>
    </item>
  </channel>
</rss>

