<?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: Error when migrating to version1.3: Cannot read property 'widgetType' of undefined in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1029027#M1523</link>
    <description>&lt;P&gt;Could you try to create a new experience from scratch and try to add your own widget inside ?&lt;/P&gt;&lt;P&gt;It may give some leads on what is failing ?&lt;/P&gt;</description>
    <pubDate>Mon, 22 Feb 2021 09:34:06 GMT</pubDate>
    <dc:creator>AlexisCuicui</dc:creator>
    <dc:date>2021-02-22T09:34:06Z</dc:date>
    <item>
      <title>Renaming Widget Error: Cannot read property 'widgetType' of undefined</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1026934#M1482</link>
      <description>&lt;P&gt;Update:&amp;nbsp; If you read through you will find that renaming widgets was the issue.&lt;/P&gt;&lt;P&gt;Up to now I have been working with Dev Edition v1.1 and wanted to try migrating to v1.3. When I ran into trouble, I tried migrating to v1.2 where I did not encounter this error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/6065i0E64F840E8C8F612/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My project has 2 custom widgets that I developed, but only one of them fails. A third widget that also fails is simply a copy of the argis-map widget that I renamed and made a few changes in mapbase.tsx to disable all navigation (replacing/enhancing the functionality of the disable zoom scrolling option). All 3 custom widgets worked correctly in v1.3 when I tested them in a new ExB project. Again, I have no problems migrating to v1.2.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I also see errors in the server command window:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 726px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/6066iF90C3EC170E298B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any thoughts regarding this would be appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 22:46:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1026934#M1482</guid>
      <dc:creator>DaveFullerton</dc:creator>
      <dc:date>2021-04-09T22:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error when migrating to version1.3: Cannot read property 'widgetType' of undefined</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1027189#M1485</link>
      <description>&lt;P&gt;Good afternoon,&lt;/P&gt;&lt;P&gt;Look in your browser console if the loading of the API isn't blocked du to CORS request.&lt;/P&gt;&lt;P&gt;&lt;A href="https://HOSTNAME/arcgis_api_js/library/4.18" target="_blank"&gt;https://HOSTNAME/arcgis_api_js/library/4.18&lt;/A&gt;/dojo/dojo.js&lt;/P&gt;&lt;P&gt;I had the same issue, until i enabled CORS requests on my server.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 16:28:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1027189#M1485</guid>
      <dc:creator>AlexisCuicui</dc:creator>
      <dc:date>2021-02-16T16:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error when migrating to version1.3: Cannot read property 'widgetType' of undefined</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1027202#M1486</link>
      <description>&lt;P&gt;I am running the developer edition on a pc (IIS turned on, of course).&amp;nbsp; Here are the errors from the console:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/6134i82A6DC09B3B8C921/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What made you think that enabling CORS was the answer?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 16:51:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1027202#M1486</guid>
      <dc:creator>DaveFullerton</dc:creator>
      <dc:date>2021-02-16T16:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error when migrating to version1.3: Cannot read property 'widgetType' of undefined</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1027962#M1493</link>
      <description>&lt;P&gt;This showed up now too:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/6306i7250A0FBCFB90EC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 05:02:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1027962#M1493</guid>
      <dc:creator>DaveFullerton</dc:creator>
      <dc:date>2021-02-18T05:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error when migrating to version1.3: Cannot read property 'widgetType' of undefined</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1027986#M1494</link>
      <description>&lt;P&gt;I had a similar issue with the same prompt error message. But it seems to be different in your case.&lt;/P&gt;&lt;P&gt;I may ask a basic question but, are the file from the 404 error accessible from file explorer &lt;STRONG&gt;in client/dist/widgets&lt;/STRONG&gt; ?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 09:31:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1027986#M1494</guid>
      <dc:creator>AlexisCuicui</dc:creator>
      <dc:date>2021-02-18T09:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error when migrating to version1.3: Cannot read property 'widgetType' of undefined</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1028109#M1497</link>
      <description>&lt;P&gt;This is not a basic question for me, Alexis.&amp;nbsp; I don't see anything there or within the widget directory:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 518px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/6323i914474069AD78F8D/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 595px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/6324i3A57D9E7FA2B188D/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 16:30:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1028109#M1497</guid>
      <dc:creator>DaveFullerton</dc:creator>
      <dc:date>2021-02-18T16:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error when migrating to version1.3: Cannot read property 'widgetType' of undefined</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1028522#M1509</link>
      <description>&lt;P&gt;The only way , I could reproduce your error was to delete/empty the manifest file into the Widget.&lt;/P&gt;&lt;P&gt;Are you Widget in the &lt;STRONG&gt;client/your-extensions/widget&lt;/STRONG&gt; repository ?&lt;/P&gt;&lt;P&gt;Is your client side started on NPM ?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 15:26:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1028522#M1509</guid>
      <dc:creator>AlexisCuicui</dc:creator>
      <dc:date>2021-02-19T15:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error when migrating to version1.3: Cannot read property 'widgetType' of undefined</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1028649#M1511</link>
      <description>&lt;P&gt;Thanks for trying that Alexis.&amp;nbsp; The answer is a definitive yes to both questions.&amp;nbsp; I have not tried enabling CORS yet.&amp;nbsp; Developer Edition has been installed on a PC.&amp;nbsp; We have a new IT director and he has recently taken away our administrator access to PCs.&amp;nbsp; I cannot run IIS Manager anymore and am waiting to hear back from a system administrator (who is now overloaded due stricter policies).&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 18:57:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1028649#M1511</guid>
      <dc:creator>DaveFullerton</dc:creator>
      <dc:date>2021-02-19T18:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error when migrating to version1.3: Cannot read property 'widgetType' of undefined</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1028788#M1516</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/36532"&gt;@DaveFullerton&lt;/a&gt;&amp;nbsp;I think you may not run "npm start" in the client folder. The custom widgets need to be compiled when they are upgraded to the new version.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2021 00:11:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1028788#M1516</guid>
      <dc:creator>Junshan_Liu</dc:creator>
      <dc:date>2021-02-20T00:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error when migrating to version1.3: Cannot read property 'widgetType' of undefined</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1028997#M1520</link>
      <description>&lt;P&gt;As I told Alexis above, web pack was running.&amp;nbsp; I tried it many things and restarted web pack repeatedly to try those different things.&amp;nbsp; Also, as stated in the original post, one of my custom widgets did work correctly.&amp;nbsp; Custom widgets for a different application worked correctly too.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 04:41:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1028997#M1520</guid>
      <dc:creator>DaveFullerton</dc:creator>
      <dc:date>2021-02-22T04:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error when migrating to version1.3: Cannot read property 'widgetType' of undefined</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1029004#M1521</link>
      <description>&lt;P&gt;This looks strange if the widget is in the dist folder. Can you launch the URL in a new tab that shown as 404 in the console?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 05:56:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1029004#M1521</guid>
      <dc:creator>Junshan_Liu</dc:creator>
      <dc:date>2021-02-22T05:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error when migrating to version1.3: Cannot read property 'widgetType' of undefined</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1029027#M1523</link>
      <description>&lt;P&gt;Could you try to create a new experience from scratch and try to add your own widget inside ?&lt;/P&gt;&lt;P&gt;It may give some leads on what is failing ?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 09:34:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1029027#M1523</guid>
      <dc:creator>AlexisCuicui</dc:creator>
      <dc:date>2021-02-22T09:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error when migrating to version1.3: Cannot read property 'widgetType' of undefined</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1029145#M1526</link>
      <description>&lt;P&gt;Thanks, Alexis, as stated in the original post I have tried that:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;All 3 custom widgets worked correctly in v1.3 when I tested them in a new ExB project.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 15:48:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1029145#M1526</guid>
      <dc:creator>DaveFullerton</dc:creator>
      <dc:date>2021-02-22T15:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error when migrating to version1.3: Cannot read property 'widgetType' of undefined</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1029154#M1527</link>
      <description>&lt;P&gt;Yes, the widgets are in the dist folder.&amp;nbsp; This is what it looks like if I copy and paste the URL in a new tab:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/6575iAFD40E862681C6D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is what it looks like when I Preview the app:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/6576i07D3DC335AAEC58F/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 15:59:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1029154#M1527</guid>
      <dc:creator>DaveFullerton</dc:creator>
      <dc:date>2021-02-22T15:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error when migrating to version1.3: Cannot read property 'widgetType' of undefined</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1029156#M1528</link>
      <description>&lt;P&gt;The NODE_TLS_UNAUTHRIZED error may be a hint that CORS needs to be enable.&amp;nbsp; Hopefully I will hear back from IT about getting privileges set back to where there were so I can do that.&amp;nbsp; A new error has cropped up:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 384px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/6577i6D95F1C0806138EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 16:03:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1029156#M1528</guid>
      <dc:creator>DaveFullerton</dc:creator>
      <dc:date>2021-02-22T16:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error when migrating to version1.3: Cannot read property 'widgetType' of undefined</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1031766#M1566</link>
      <description>&lt;DIV&gt;The widget name is changed. Take &lt;STRONG&gt;op-whmn-search&lt;/STRONG&gt; as a sample, it's called &lt;STRONG&gt;op-search&lt;/STRONG&gt; in the config.json, but the widget name is changed to op-whmn-search, that's the reason why the widget can't be found.&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 Mar 2021 01:59:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1031766#M1566</guid>
      <dc:creator>Junshan_Liu</dc:creator>
      <dc:date>2021-03-02T01:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error when migrating to version1.3: Cannot read property 'widgetType' of undefined</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1032061#M1573</link>
      <description>&lt;P&gt;Thank you, Junshan.&amp;nbsp; To differentiate the names between the widgets for this Experience from the ones for an Experience that followed, I renamed the widgets.&amp;nbsp; This was a long while back.&amp;nbsp; When I tested the projects in v1.1, everything worked fine.&amp;nbsp; I made changes and redeployed the Experience multiple times - but made no changes to the custom widgets.&amp;nbsp; It seems to me that the reason the widgets continued to work is that after I renamed the widgets there were functioning orphans in the client\dist\widgets directory.&lt;/P&gt;&lt;P&gt;So I guess the question now becomes:&amp;nbsp; "Is there a way to rename widgets and fix Experiences that reference them?"&lt;/P&gt;&lt;P&gt;As you say, the config.json file in&amp;nbsp;server\src\public\apps\5 did not have the correct widget names.&amp;nbsp; I updated them, but it still didn't work.&amp;nbsp; I then found the config.json file in&amp;nbsp;server\src\public\apps\5\resources\config and updated it.&amp;nbsp; This did the trick.&lt;/P&gt;&lt;P&gt;So from what I have seen so far, it seems that after renaming a widget, you should:&lt;/P&gt;&lt;P&gt;1. Delete the orphan&amp;nbsp;in&amp;nbsp;client\dist\widgets.&lt;/P&gt;&lt;P&gt;2. Change all references to the name of the widget in&amp;nbsp;server\src\public\apps\[#]\config.json and server\src\public\apps\[#]\config.json.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Mar 2021 18:49:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1032061#M1573</guid>
      <dc:creator>DaveFullerton</dc:creator>
      <dc:date>2021-03-02T18:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error when migrating to version1.3: Cannot read property 'widgetType' of undefined</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1032317#M1578</link>
      <description>&lt;P&gt;To change a widget name, you need to:&lt;/P&gt;&lt;P&gt;1. Stop webpack in client&lt;/P&gt;&lt;P&gt;2. Change the folder name&lt;/P&gt;&lt;P&gt;3. Change the name in manifest.json&lt;/P&gt;&lt;P&gt;4. Change the reference in apps/#/config.json and apps/#/resource/config.json (one config is for published version, one config is for draft version)&lt;/P&gt;&lt;P&gt;5. Start webpack&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 05:28:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/renaming-widget-error-cannot-read-property/m-p/1032317#M1578</guid>
      <dc:creator>Junshan_Liu</dc:creator>
      <dc:date>2021-03-03T05:28:19Z</dc:date>
    </item>
  </channel>
</rss>

