<?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: [Bug ?] jimu-arcgis dependency =&amp;gt; TypeError this.mapView is undefined in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/bug-jimu-arcgis-dependency-gt-typeerror-this/m-p/1142362#M3682</link>
    <description>&lt;P&gt;Hi D_P,&amp;nbsp;by default, Experience Builder does not load the ArcGIS API for JavaScript when the app loads. There are two options to use the JS API modules, documented here:&amp;nbsp;&lt;A href="https://developers.arcgis.com/experience-builder/guide/extend-base-widget/#modules-in-the-arcgis-api-for-javascript" target="_blank"&gt;https://developers.arcgis.com/experience-builder/guide/extend-base-widget/#modules-in-the-arcgis-api-for-javascript&lt;/A&gt;&amp;nbsp;If you do not do either of those, but try to import a JS API module in your custom code, it will not work and you will likely experience errors like you mention above. I do not think that's related to your original issue, because you are getting the error when the jimu-arcgis dependency is properly included in the manifest.json file.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Feb 2022 21:05:46 GMT</pubDate>
    <dc:creator>GavinRehkemper</dc:creator>
    <dc:date>2022-02-09T21:05:46Z</dc:date>
    <item>
      <title>[Bug ?] jimu-arcgis dependency =&gt; TypeError this.mapView is undefined</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/bug-jimu-arcgis-dependency-gt-typeerror-this/m-p/1141154#M3653</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;adding the jimu-arcgis dependency in the manifest.json causes the following error in custom widgets. I've tried this with my own code and esri's js-api-widget in Exp.B. 1.6 &amp;amp; 1.7. Is anyone else getting the error?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Uncaught (in promise) TypeError: this.mapView is undefined
    updateMapView https://localhost:3001/widgets/arcgis/arcgis-map/dist/runtime/widget.js:1
    componentDidUpdate https://localhost:3001/widgets/arcgis/arcgis-map/dist/runtime/widget.js:1
    promise callback*componentDidUpdate https://localhost:3001/widgets/arcgis/arcgis-map/dist/runtime/widget.js:1
    React 14
    u https://localhost:3001/jimu-core/index.js:2
    createResizeHandler https://localhost:3001/jimu-core/index.js:2
    createResizeHandler https://localhost:3001/jimu-core/index.js:2
    t https://localhost:3001/jimu-core/index.js:2
    React 15
    startRenderMap https://localhost:3001/widgets/arcgis/arcgis-map/dist/runtime/widget.js:446
    setTimeout handler*execute/Ie/this.startRenderMap https://localhost:3001/widgets/arcgis/arcgis-map/dist/runtime/widget.js:446
    componentDidMount https://localhost:3001/widgets/arcgis/arcgis-map/dist/runtime/widget.js:603
    React 8
widget.js:1:26069&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 13:34:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/bug-jimu-arcgis-dependency-gt-typeerror-this/m-p/1141154#M3653</guid>
      <dc:creator>D_P</dc:creator>
      <dc:date>2022-02-07T13:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: [Bug ?] jimu-arcgis dependency =&gt; TypeError this.mapView is undefined</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/bug-jimu-arcgis-dependency-gt-typeerror-this/m-p/1141597#M3657</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/515882"&gt;@D_P&lt;/a&gt;&amp;nbsp;, yes!&amp;nbsp; Or a least something similar (see below).&amp;nbsp; Definitely only in 1.6 and 1.7.&amp;nbsp; I had been wanting to post something about this, but hadn't had the time.&amp;nbsp; I can confirm that the error also shows up when deployed to the production server.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was on a wild goose chase for a while trying to figure this out.&amp;nbsp; The last thing I thought to try was removing things from manifest.js!&amp;nbsp;&amp;nbsp;I haven't noticed that it causes any significant problems.&amp;nbsp; It was just very confusing.&lt;/P&gt;&lt;P&gt;To isolate and test the issue, I added&amp;nbsp;&lt;SPAN&gt;the jimu-arcgis dependency to the manifest of the Simple sample widget.&amp;nbsp; I added the Simple widget and a Map widget to a project.&amp;nbsp; The error shows up on page load, and did not show up until I selected a map in the Map widget (tested with Daily COVID-19 Trends from Living Atlas).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/320"&gt;@GavinRehkemper&lt;/a&gt;&amp;nbsp;, have you experienced this?&amp;nbsp; Would you mind seeing if you can reproduce it or asking if the development team is aware?&amp;nbsp; Not sure if it is relevant but I am running node v12.18.3.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;widget.js:1 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'popup')&lt;BR /&gt;at y.updateMapView (widget.js:1:26148)&lt;BR /&gt;at widget.js:1:43992&lt;BR /&gt;updateMapView @ widget.js:1&lt;BR /&gt;(anonymous) @ widget.js:1&lt;BR /&gt;Promise.then (async)&lt;BR /&gt;componentDidUpdate @ widget.js:1&lt;BR /&gt;hu @ react-dom.js:2&lt;BR /&gt;zi @ react-dom.js:2&lt;BR /&gt;n.unstable_runWithPriority @ react-dom.js:2&lt;BR /&gt;Hl @ react-dom.js:2&lt;BR /&gt;Ti @ react-dom.js:2&lt;BR /&gt;gi @ react-dom.js:2&lt;BR /&gt;(anonymous) @ react-dom.js:2&lt;BR /&gt;n.unstable_runWithPriority @ react-dom.js:2&lt;BR /&gt;Hl @ react-dom.js:2&lt;BR /&gt;Kl @ react-dom.js:2&lt;BR /&gt;ql @ react-dom.js:2&lt;BR /&gt;fi @ react-dom.js:2&lt;BR /&gt;enqueueSetState @ react-dom.js:2&lt;BR /&gt;h.setState @ react.js:2&lt;BR /&gt;(anonymous) @ index.js:2&lt;BR /&gt;(anonymous) @ index.js:2&lt;BR /&gt;r.createResizeHandler @ index.js:2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 15:01:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/bug-jimu-arcgis-dependency-gt-typeerror-this/m-p/1141597#M3657</guid>
      <dc:creator>DaveFullerton</dc:creator>
      <dc:date>2022-02-08T15:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: [Bug ?] jimu-arcgis dependency =&gt; TypeError this.mapView is undefined</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/bug-jimu-arcgis-dependency-gt-typeerror-this/m-p/1141680#M3659</link>
      <description>&lt;P&gt;Thank you both for this information. I am able to replicate this issue by following these steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Download, unzip and install developer edition of Experience Builder v1.7.&lt;/LI&gt;&lt;LI&gt;Add code to &lt;STRONG&gt;client\your-extensions\widgets\simple\manifest.json&lt;/STRONG&gt;:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"dependency": ["jimu-arcgis"],​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In the browser, create a new Experience.&lt;/LI&gt;&lt;LI&gt;Add the "Simple" and "Map" widgets&lt;/LI&gt;&lt;LI&gt;Save the experience&lt;/LI&gt;&lt;LI&gt;Open the preview&lt;/LI&gt;&lt;LI&gt;Open the browser developer tools (console)&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;Expected: no errors&lt;/LI&gt;&lt;LI&gt;Actual: Error:&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'popup')
    at y.updateMapView (:3001/widgets/arcgis/arcgis-map/dist/runtime/widget.js:1:26148)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll check into this. Is this error blocking any functionality? Or is this just an error that shows up but is not causing any functional issues?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 17:06:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/bug-jimu-arcgis-dependency-gt-typeerror-this/m-p/1141680#M3659</guid>
      <dc:creator>GavinRehkemper</dc:creator>
      <dc:date>2022-02-08T17:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: [Bug ?] jimu-arcgis dependency =&gt; TypeError this.mapView is undefined</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/bug-jimu-arcgis-dependency-gt-typeerror-this/m-p/1141712#M3660</link>
      <description>&lt;P&gt;It caused me no noticeable problems other than confusion, Gavin.&amp;nbsp; However, I have not put anything from v1.6 or v1.7 into production.&amp;nbsp; I did migrate my development environment to v1.6 and did limit testing.&amp;nbsp; No problems there.&amp;nbsp; I only got started on v1.7 and got pulled away.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 17:54:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/bug-jimu-arcgis-dependency-gt-typeerror-this/m-p/1141712#M3660</guid>
      <dc:creator>DaveFullerton</dc:creator>
      <dc:date>2022-02-08T17:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: [Bug ?] jimu-arcgis dependency =&gt; TypeError this.mapView is undefined</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/bug-jimu-arcgis-dependency-gt-typeerror-this/m-p/1142015#M3667</link>
      <description>&lt;P&gt;Thank you, Dave and Gavin! So far it's not causing any functional issues, but it took quite some head scratching to figure out what was going on.&lt;/P&gt;&lt;P&gt;Best regards, Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 10:00:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/bug-jimu-arcgis-dependency-gt-typeerror-this/m-p/1142015#M3667</guid>
      <dc:creator>D_P</dc:creator>
      <dc:date>2022-02-09T10:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: [Bug ?] jimu-arcgis dependency =&gt; TypeError this.mapView is undefined</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/bug-jimu-arcgis-dependency-gt-typeerror-this/m-p/1142026#M3668</link>
      <description>&lt;P&gt;I've uploaded a little demo.&lt;/P&gt;&lt;P&gt;&lt;A href="http://demo.egnaro.net/?data_id=dataSource_1-boreholes_geojson_6489%3A5%2B1%2B3%2B4" target="_blank" rel="noopener"&gt;https://demo.egnaro.net/?data_id=dataSource_1-boreholes_geojson_6489%3A5%2B1%2B3%2B4&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In Firefox the error only occurs after the service worker cached the page. So with clean cache (ctrl+F5) there is no error.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 10:56:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/bug-jimu-arcgis-dependency-gt-typeerror-this/m-p/1142026#M3668</guid>
      <dc:creator>D_P</dc:creator>
      <dc:date>2022-02-09T10:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: [Bug ?] jimu-arcgis dependency =&gt; TypeError this.mapView is undefined</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/bug-jimu-arcgis-dependency-gt-typeerror-this/m-p/1142068#M3669</link>
      <description>&lt;P&gt;Very interesting about the service worker cache.&amp;nbsp; That further explains why it was so confusing.&amp;nbsp; Some things I tried with a new project seemed to resolve the issue and then the error was back again when I tried to confirm.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 13:19:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/bug-jimu-arcgis-dependency-gt-typeerror-this/m-p/1142068#M3669</guid>
      <dc:creator>DaveFullerton</dc:creator>
      <dc:date>2022-02-09T13:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: [Bug ?] jimu-arcgis dependency =&gt; TypeError this.mapView is undefined</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/bug-jimu-arcgis-dependency-gt-typeerror-this/m-p/1142338#M3680</link>
      <description>&lt;P&gt;There are some mighty strange things going on with the jimu-arcgis dependency and service workers. Once I forgot to add the dependency in a custom widget although I imported GraphicsLayer from esri/layers/GraphicsLayers and some other stuff. Everything worked fine locally but once I got it online the widget said "Fail to load" and I was getting some "window.require is not a function" errors. There was a strange randomness to the issue. Cleaning the cache mostly worked for Firefox but Chrome wasn't working most of the time. I was going absolutely bananas till I figured out all was caused by the missing dependency.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 20:44:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/bug-jimu-arcgis-dependency-gt-typeerror-this/m-p/1142338#M3680</guid>
      <dc:creator>D_P</dc:creator>
      <dc:date>2022-02-09T20:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: [Bug ?] jimu-arcgis dependency =&gt; TypeError this.mapView is undefined</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/bug-jimu-arcgis-dependency-gt-typeerror-this/m-p/1142362#M3682</link>
      <description>&lt;P&gt;Hi D_P,&amp;nbsp;by default, Experience Builder does not load the ArcGIS API for JavaScript when the app loads. There are two options to use the JS API modules, documented here:&amp;nbsp;&lt;A href="https://developers.arcgis.com/experience-builder/guide/extend-base-widget/#modules-in-the-arcgis-api-for-javascript" target="_blank"&gt;https://developers.arcgis.com/experience-builder/guide/extend-base-widget/#modules-in-the-arcgis-api-for-javascript&lt;/A&gt;&amp;nbsp;If you do not do either of those, but try to import a JS API module in your custom code, it will not work and you will likely experience errors like you mention above. I do not think that's related to your original issue, because you are getting the error when the jimu-arcgis dependency is properly included in the manifest.json file.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 21:05:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/bug-jimu-arcgis-dependency-gt-typeerror-this/m-p/1142362#M3682</guid>
      <dc:creator>GavinRehkemper</dc:creator>
      <dc:date>2022-02-09T21:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: [Bug ?] jimu-arcgis dependency =&gt; TypeError this.mapView is undefined</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/bug-jimu-arcgis-dependency-gt-typeerror-this/m-p/1142393#M3683</link>
      <description>&lt;P&gt;Yes sorry my last posting was off topic. However strangely the import of jsapi modules did work on localhost without the dependency in manifest.json and online in Firefox with empty cache. Maybe I can find my old code if it's of interest to you. I had reached out to esri germany about this error but they couldn't help me either.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 21:46:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/bug-jimu-arcgis-dependency-gt-typeerror-this/m-p/1142393#M3683</guid>
      <dc:creator>D_P</dc:creator>
      <dc:date>2022-02-09T21:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: [Bug ?] jimu-arcgis dependency =&gt; TypeError this.mapView is undefined</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/bug-jimu-arcgis-dependency-gt-typeerror-this/m-p/1150173#M3873</link>
      <description>&lt;P&gt;This issue will be fixed in the next release of developer edition of Experience Builder (v1.8).&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 14:31:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/bug-jimu-arcgis-dependency-gt-typeerror-this/m-p/1150173#M3873</guid>
      <dc:creator>GavinRehkemper</dc:creator>
      <dc:date>2022-03-03T14:31:32Z</dc:date>
    </item>
  </channel>
</rss>

