<?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: Use esri/rest in webworker error in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-esri-rest-in-webworker-error/m-p/1108939#M75018</link>
    <description>&lt;P&gt;I tested out doing a query in the worker using this sample without errors.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-custom-workers" target="_blank"&gt;https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-custom-workers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Look over that sample and see if you can find some tips on how to get it to work in your project.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Oct 2021 17:47:17 GMT</pubDate>
    <dc:creator>ReneRubalcava</dc:creator>
    <dc:date>2021-10-19T17:47:17Z</dc:date>
    <item>
      <title>Use esri/rest in webworker error</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-esri-rest-in-webworker-error/m-p/1108909#M75015</link>
      <description>&lt;P&gt;&amp;nbsp; I am trying to use javascript api esri/rest/query in a webworker.&lt;/P&gt;&lt;P&gt;&amp;nbsp;But at run time, it got error 'typeError: _global_js__WEBPACK_IMPORTED_MODULE_1__.default.invokeStaticMessage is not a function".&lt;/P&gt;&lt;P&gt;&amp;nbsp; Does Arcgis javascript api support using esri/rest/query&amp;nbsp; in webworker?&amp;nbsp; If yes, could you help to let me know what I am missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Below are parts of the code in webworker?&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt; &lt;SPAN&gt;*&lt;/SPAN&gt; &lt;SPAN&gt;as&lt;/SPAN&gt; &lt;SPAN&gt;query&lt;/SPAN&gt; &lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;'@arcgis/core/rest/query'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;...&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;query&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;executeForCount&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;queryOptions&lt;/SPAN&gt;&lt;SPAN&gt;, { &lt;/SPAN&gt;&lt;SPAN&gt;url&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&amp;nbsp;layerUrl&lt;SPAN&gt;&amp;nbsp;});&amp;nbsp; // This causes the error above.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;Thanks!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 16:42:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-esri-rest-in-webworker-error/m-p/1108909#M75015</guid>
      <dc:creator>QingXu</dc:creator>
      <dc:date>2021-10-19T16:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Use esri/rest in webworker error</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-esri-rest-in-webworker-error/m-p/1108939#M75018</link>
      <description>&lt;P&gt;I tested out doing a query in the worker using this sample without errors.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-custom-workers" target="_blank"&gt;https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-custom-workers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Look over that sample and see if you can find some tips on how to get it to work in your project.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 17:47:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-esri-rest-in-webworker-error/m-p/1108939#M75018</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-10-19T17:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Use esri/rest in webworker error</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-esri-rest-in-webworker-error/m-p/1108978#M75021</link>
      <description>&lt;P&gt;&amp;nbsp; I didn't use the worker framework from the javascript api.&amp;nbsp; I just implemented a regular webworker in angular. Do I need to do any esri config setting to make the webworker working?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 19:10:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-esri-rest-in-webworker-error/m-p/1108978#M75021</guid>
      <dc:creator>QingXu</dc:creator>
      <dc:date>2021-10-19T19:10:37Z</dc:date>
    </item>
  </channel>
</rss>

