<?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: Embedding ArcGIS JavaScript API maps in Election App in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/embedding-arcgis-javascript-api-maps-in-election/m-p/342869#M31715</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Electron FAQ has clear information, more or less the solution as shown by Rene:&amp;nbsp;&lt;A class="link-titled" href="https://www.electronjs.org/docs/faq#i-can-not-use-jqueryrequirejsmeteorangularjs-in-electron" title="https://www.electronjs.org/docs/faq#i-can-not-use-jqueryrequirejsmeteorangularjs-in-electron"&gt;Electron FAQ | Electron&lt;/A&gt;&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;lt;head&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;lt;script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; window.nodeRequire = require;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; delete window.require;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; delete window.exports;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; delete window.module;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;lt;script type="text/javascript" src="jquery.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;lt;/head&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Nov 2020 15:33:49 GMT</pubDate>
    <dc:creator>Willemvan_der_Gugten</dc:creator>
    <dc:date>2020-11-04T15:33:49Z</dc:date>
    <item>
      <title>Embedding ArcGIS JavaScript API maps in Election App</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/embedding-arcgis-javascript-api-maps-in-election/m-p/342864#M31710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using electron(electron.atom.io) for building cross browser application but i am unable to embed arcgis javascript maps into it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error Message:&lt;/P&gt;&lt;P&gt;Uncaught Error: require.paths is removed. Use node_modules folders, or the NODE_PATH environment variable instead.&lt;/P&gt;&lt;P&gt;Uncaught AssertionError: path must be a string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried everything but i am unable to resolve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone confirm whether it is possible to fix this issue with my app? because i have successfully embedded google maps and other simple maps api.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 16:02:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/embedding-arcgis-javascript-api-maps-in-election/m-p/342864#M31710</guid>
      <dc:creator>YogeshDhanapal1</dc:creator>
      <dc:date>2015-06-22T16:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding ArcGIS JavaScript API maps in Election App</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/embedding-arcgis-javascript-api-maps-in-election/m-p/342865#M31711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've never worked with Electron, but given the error message I'm guessing that there is a conflict between Dojo's AMD loader and Electron's loader (the "require" part). Dojo has a global variable called "require" and it looks like Electron may also have one. If this is the case, one is overwriting the other, which is bad; Dojo is either attempting to use Electron's loader or vice-versa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you search the web for posts about working with Dojo and other frameworks (like Angular, Ember, or REACT) you'll see that there can be challenges with conflicting loaders. You may be able to derive a solution for your case from these.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although I can't give you a solution for Electron, hopefully I've given you a starting point.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 21:37:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/embedding-arcgis-javascript-api-maps-in-election/m-p/342865#M31711</guid>
      <dc:creator>DavidBlanchard</dc:creator>
      <dc:date>2015-06-23T21:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding ArcGIS JavaScript API maps in Election App</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/embedding-arcgis-javascript-api-maps-in-election/m-p/342866#M31712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm running into the same issue.&amp;nbsp; I believe that Electron is based on NodeJS which is likely using the CommonJS loader (which is providing a conflicting require function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 10:52:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/embedding-arcgis-javascript-api-maps-in-election/m-p/342866#M31712</guid>
      <dc:creator>MikeGraham</dc:creator>
      <dc:date>2016-07-27T10:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding ArcGIS JavaScript API maps in Election App</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/embedding-arcgis-javascript-api-maps-in-election/m-p/342867#M31713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For Electron, you'll need to rename the node require.&lt;/P&gt;&lt;P&gt;So maybe in your index.html you would have this&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var nodereq = window.require;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var dojoConfig = {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; async: true
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;P&gt;The in your app, you could do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var&amp;nbsp; configs = nodereq('./helper');
var ipc = nodereq('ipc');
require(["esri/Map"], function(Map) {/*stuff*/});&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the Electron portion of your app can work as normal waiting for ipc messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've done some Electron stuff with the JSAPI in the past, maybe I should do a small post on it.&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 16:10:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/embedding-arcgis-javascript-api-maps-in-election/m-p/342867#M31713</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-12-11T16:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding ArcGIS JavaScript API maps in Election App</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/embedding-arcgis-javascript-api-maps-in-election/m-p/342868#M31714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would love to see that post...&amp;nbsp; i've done a bunch of ESRI &amp;amp; Aurelia work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see this:&lt;/P&gt;&lt;P&gt;&lt;A href="http://cmichaelgraham.github.io/skel-nav-esri4-vs-ts/index-release.html#/esri-globe"&gt;cmichaelgraham.github.io/skel-nav-esri4-vs-ts/index-release.html#/esri-globe&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm working on a sample that combines Aurelia and ESRI on Electron or PhoneGap &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 17:50:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/embedding-arcgis-javascript-api-maps-in-election/m-p/342868#M31714</guid>
      <dc:creator>MikeGraham</dc:creator>
      <dc:date>2016-07-27T17:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding ArcGIS JavaScript API maps in Election App</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/embedding-arcgis-javascript-api-maps-in-election/m-p/342869#M31715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Electron FAQ has clear information, more or less the solution as shown by Rene:&amp;nbsp;&lt;A class="link-titled" href="https://www.electronjs.org/docs/faq#i-can-not-use-jqueryrequirejsmeteorangularjs-in-electron" title="https://www.electronjs.org/docs/faq#i-can-not-use-jqueryrequirejsmeteorangularjs-in-electron"&gt;Electron FAQ | Electron&lt;/A&gt;&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;lt;head&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;lt;script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; window.nodeRequire = require;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; delete window.require;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; delete window.exports;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; delete window.module;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;lt;script type="text/javascript" src="jquery.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;lt;/head&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2020 15:33:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/embedding-arcgis-javascript-api-maps-in-election/m-p/342869#M31715</guid>
      <dc:creator>Willemvan_der_Gugten</dc:creator>
      <dc:date>2020-11-04T15:33:49Z</dc:date>
    </item>
  </channel>
</rss>

