<?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 ES Modules not loading WMSLayer in electron when nodeIntegration enabled in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/es-modules-not-loading-wmslayer-in-electron-when/m-p/1018768#M71459</link>
    <description>&lt;P&gt;I'm programming w/ angular9, and have everything working w/ esri-loader and v4.16. I tried to update to 4.18 so that I could ditch esri-loader (which breaks my automated tests, different story) for es modules. Most things seem to work and everything compiles. However...&lt;/P&gt;&lt;P&gt;My browser gets spammed w/ the error below and my maps never load.&lt;/P&gt;&lt;P&gt;[esri.views.2d.layers.WMSLayerView2D]&lt;/P&gt;&lt;P&gt;"responseType 'image' is not supported in Web Workers or Node environment"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I disabled nodeIntegration, the maps load but then I lose responsiveness and IPC. I've seen workarounds, but at the cost of security.&lt;/P&gt;&lt;P&gt;Am I just not permitted to upgrade to 4.18 es modules since I use electron (w/ nodeIntegration)?&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jan 2021 18:33:59 GMT</pubDate>
    <dc:creator>JohnWyant</dc:creator>
    <dc:date>2021-01-21T18:33:59Z</dc:date>
    <item>
      <title>ES Modules not loading WMSLayer in electron when nodeIntegration enabled</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/es-modules-not-loading-wmslayer-in-electron-when/m-p/1018768#M71459</link>
      <description>&lt;P&gt;I'm programming w/ angular9, and have everything working w/ esri-loader and v4.16. I tried to update to 4.18 so that I could ditch esri-loader (which breaks my automated tests, different story) for es modules. Most things seem to work and everything compiles. However...&lt;/P&gt;&lt;P&gt;My browser gets spammed w/ the error below and my maps never load.&lt;/P&gt;&lt;P&gt;[esri.views.2d.layers.WMSLayerView2D]&lt;/P&gt;&lt;P&gt;"responseType 'image' is not supported in Web Workers or Node environment"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I disabled nodeIntegration, the maps load but then I lose responsiveness and IPC. I've seen workarounds, but at the cost of security.&lt;/P&gt;&lt;P&gt;Am I just not permitted to upgrade to 4.18 es modules since I use electron (w/ nodeIntegration)?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 18:33:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/es-modules-not-loading-wmslayer-in-electron-when/m-p/1018768#M71459</guid>
      <dc:creator>JohnWyant</dc:creator>
      <dc:date>2021-01-21T18:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: ES Modules not loading WMSLayer in electron when nodeIntegration enabled</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/es-modules-not-loading-wmslayer-in-electron-when/m-p/1020840#M71519</link>
      <description>&lt;P&gt;Hi John, here's a proof-of-concept app showing how to use JS API 4.x ES modules with webpack 5 and Electron 11.2:&amp;nbsp;&lt;A href="https://github.com/andygup/electron-esri-map" target="_blank"&gt;https://github.com/andygup/electron-esri-map&lt;/A&gt;. This demonstrates that the underlying integration with webpack and electron is possible. What will be challenging is figuring out the right configuration permutations to get Angular, JS API ES modules, Webpack and Electron all to work together into one application.&amp;nbsp;&lt;/P&gt;&lt;P&gt;With regards to writing unit tests, we will have a session at the upcoming 2021 Developer Summit includes insight on writing unit tests with JS API ES modules and Angular 11.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 01:04:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/es-modules-not-loading-wmslayer-in-electron-when/m-p/1020840#M71519</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-01-28T01:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: ES Modules not loading WMSLayer in electron when nodeIntegration enabled</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/es-modules-not-loading-wmslayer-in-electron-when/m-p/1025602#M71726</link>
      <description>&lt;P&gt;Hi Andy, is there a proof of concept that utilizes the WMSLayer within electron w/ nodeIntegration enabled? That combo is what I haven't seen work.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 21:33:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/es-modules-not-loading-wmslayer-in-electron-when/m-p/1025602#M71726</guid>
      <dc:creator>JohnWyant</dc:creator>
      <dc:date>2021-02-10T21:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: ES Modules not loading WMSLayer in electron when nodeIntegration enabled</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/es-modules-not-loading-wmslayer-in-electron-when/m-p/1025922#M71740</link>
      <description>&lt;P&gt;Nope, sorry. That Class has not been refactored.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 16:14:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/es-modules-not-loading-wmslayer-in-electron-when/m-p/1025922#M71740</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-02-11T16:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: ES Modules not loading WMSLayer in electron when nodeIntegration enabled</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/es-modules-not-loading-wmslayer-in-electron-when/m-p/1049038#M72641</link>
      <description>&lt;P&gt;For future people that may come w/ the same question...&lt;/P&gt;&lt;P&gt;What I found is that nodeIntegration enabled so that you can do i2c communication w/ your app is NOT secure. Take a look on electron contextBridge:&amp;nbsp;&lt;A href="https://www.electronjs.org/docs/api/context-bridge" target="_blank"&gt;https://www.electronjs.org/docs/api/context-bridge&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Once I made this switch, WMSLayer works and I technically made my app more secure.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 11:58:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/es-modules-not-loading-wmslayer-in-electron-when/m-p/1049038#M72641</guid>
      <dc:creator>JohnWyant</dc:creator>
      <dc:date>2021-04-20T11:58:30Z</dc:date>
    </item>
  </channel>
</rss>

