Hello,
I renamed Robert's Enhanced Search Widget after making some changes. I am able to go through the setup in web appbuilder, but when I click OK to complete the widget's configuration, I get the error below and no option to save the changes. The widget is copied to the app, but no config file is saved. I've removed my code and just changed the widget name in all the files (attached), and I've tried restarting WAB multiple times, but the problem persists. Any help is greatly appreciated.
Thank you.
William
TypeError: Cannot read property 'en-us' of undefined init.js:113
at Object.<SPAN class="token tag"><SPAN class="token tag"><SPAN class="punctuation token"><</SPAN>anonymous</SPAN><SPAN class="punctuation token">></SPAN></SPAN> (FeatureActionManager.js?wab_dv=2.2:174)
at Object.forEach (init.js:70)
at Object.registerWidgetFeatureActions (FeatureActionManager.js?wab_dv=2.2:162)
at Object.<SPAN class="token tag"><SPAN class="token tag"><SPAN class="punctuation token"><</SPAN>anonymous</SPAN><SPAN class="punctuation token">></SPAN></SPAN> (FeatureActionManager.js?wab_dv=2.2:207)
at init.js:63
at visitBigSection (utils.js?wab_dv=2.2:120)
at Object.visitElement (utils.js?wab_dv=2.2:85)
at Object.c.visitElement (ConfigManager.js?wab_dv=2.2:177)
at Object._reRegisterWidgetActions (FeatureActionManager.js?wab_dv=2.2:204)
at Object._onAppConfigChanged (FeatureActionManager.js?wab_dv=2.2:252) "TypeError: Cannot read property 'en-us' of undefined
at Object.<SPAN class="token tag"><SPAN class="token tag"><SPAN class="punctuation token"><</SPAN>anonymous</SPAN><SPAN class="punctuation token">></SPAN></SPAN> (http://pcName.domainName:port/webappbuilder/apps/6/jimu.js/FeatureActionManager.js?wab_dv=2.2:174:82)
at Object.forEach (http://js.arcgis.com/3.18/init.js:70:348)
at Object.registerWidgetFeatureActions (http://pcName.domainName:port/webappbuilder/apps/6/jimu.js/FeatureActionManager.js?wab_dv=2.2:162:15)
at Object.<SPAN class="token tag"><SPAN class="token tag"><SPAN class="punctuation token"><</SPAN>anonymous</SPAN><SPAN class="punctuation token">></SPAN></SPAN> (http://pcName.domainName:port/webappbuilder/apps/6/jimu.js/FeatureActionManager.js?wab_dv=2.2:207:28)
at http://js.arcgis.com/3.18/init.js:63:209
at visitBigSection (http://pcName.domainName:port/webappbuilder/apps/6/jimu.js/shared/utils.js?wab_dv=2.2:120:13)
at Object.visitElement (http://pcName.domainName:port/webappbuilder/apps/6/jimu.js/shared/utils.js?wab_dv=2.2:85:5)
at Object.c.visitElement (http://pcName.domainName:port/webappbuilder/apps/6/jimu.js/ConfigManager.js?wab_dv=2.2:177:19)
at Object._reRegisterWidgetActions (http://pcName.domainName:port/webappbuilder/apps/6/jimu.js/FeatureActionManager.js?wab_dv=2.2:204:19)
at Object._onAppConfigChanged (http://pcName.domainName:port/webappbuilder/apps/6/jimu.js/FeatureActionManager.js?wab_dv=2.2:252:14)
----------------------------------------
rejected at a (http://js.arcgis.com/3.18/init.js:108:174)
at h (http://js.arcgis.com/3.18/init.js:107:438)
at g.then.c.then (http://js.arcgis.com/3.18/init.js:110:152)
at Object._onWidgetPoolChanged (http://pcName.domainName:port/webappbuilder/apps/6/jimu.js/ConfigManager.js?wab_dv=2.2:285:72)
at f.<SPAN class="token tag"><SPAN class="token tag"><SPAN class="punctuation token"><</SPAN>anonymous</SPAN><SPAN class="punctuation token">></SPAN></SPAN> (http://js.arcgis.com/3.18/init.js:63:209)
at f.c [as onbuilder/widgetPoolChanged] (http://js.arcgis.com/3.18/init.js:119:79)
at Function.h.emit (http://js.arcgis.com/3.18/init.js:124:331)
at Function.h.emit (http://js.arcgis.com/3.18/init.js:125:443)
at f.emit (http://js.arcgis.com/3.18/init.js:117:218)
at Object.publish (http://js.arcgis.com/3.18/init.js:169:289)
----------------------------------------
Error
at g.then.c.then (http://js.arcgis.com/3.18/init.js:110:97)
at Object._onWidgetPoolChanged (http://pcName.domainName:port/webappbuilder/apps/6/jimu.js/ConfigManager.js?wab_dv=2.2:285:72)
at f.<SPAN class="token tag"><SPAN class="token tag"><SPAN class="punctuation token"><</SPAN>anonymous</SPAN><SPAN class="punctuation token">></SPAN></SPAN> (http://js.arcgis.com/3.18/init.js:63:209)
at f.c [as onbuilder/widgetPoolChanged] (http://js.arcgis.com/3.18/init.js:119:79)
at Function.h.emit (http://js.arcgis.com/3.18/init.js:124:331)
at Function.h.emit (http://js.arcgis.com/3.18/init.js:125:443)
at f.emit (http://js.arcgis.com/3.18/init.js:117:218)
at Object.publish (http://js.arcgis.com/3.18/init.js:169:289)
at Object.<SPAN class="token tag"><SPAN class="token tag"><SPAN class="punctuation token"><</SPAN>anonymous</SPAN><SPAN class="punctuation token">></SPAN></SPAN> (http://pcName.domainName:port/webappbuilder/builder/main.js?wab_dv=2.2:2111:232)
at f.<SPAN class="token tag"><SPAN class="token tag"><SPAN class="punctuation token"><</SPAN>anonymous</SPAN><SPAN class="punctuation token">></SPAN></SPAN> (http://js.arcgis.com/3.18/init.js:63:209)"<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>