I have created my first custom widget that doesn't do anything really, but I get error when I try to use it. I don't have an nls folder and no references to nls anywhere. Only these files: config.json, manifest.json, widget.html, widget.js
How do I even trouble shoot this?
Error: uniqName_8 template:nls.label1at Object.<anonymous> (init.js:398:321)at init.js:65:207at init.js:404:202at String.replace (<anonymous>)at k.substitute (init.js:404:58)at Object._stringRepl (init.js:398:206)at Object.buildRendering (init.js:399:321)at Object.create (init.js:376:18)at Object.postscript (init.js:374:471)at new <anonymous> (init.js:205:143) 'Error: uniqName_8 template:nls.label1\n at Object.<anonymous> (https://js.arcgis.com/3.46/init.js:398:321)\n at https://js.arcgis.com/3.46/init.js:65:207\n at https://js.arcgis.com/3.46/init.js:404:202\n at String.replace (<anonymous>)\n at k.substitute (https://js.arcgis.com/3.46/init.js:404:58)\n at Object._stringRepl (https://js.arcgis.com/3.46/init.js:398:206)\n at Object.buildRendering (https://js.arcgis.com/3.46/init.js:399:321)\n at Object.create (https://js.arcgis.com/3.46/init.js:376:18)\n at Object.postscript (https://js.arcgis.com/3.46/init.js:374:471)\n at new <anonymous> (https://js.arcgis.com/3.46/init.js:205:143)\n ----------------------------------------\n rejected at c (https://js.arcgis.com/3.46/init.js:111:174)\n at r (https://js.arcgis.com/3.46/init.js:110:450)\n at q (https://js.arcgis.com/3.46/init.js:110:203)\n at v.reject (https://js.arcgis.com/3.46/init.js:112:488)\n at Object.<anonymous> (https://localhost:3344/webappbuilder/apps/2/jimu.js/WidgetManager.js?wab_dv=2.30:132:21)\n at https://js.arcgis.com/3.46/init.js:65:207\n at r (https://js.arcgis.com/3.46/init.js:110:277)\n at q (https://js.arcgis.com/3.46/init.js:110:203)\n at a.resolve (https://js.arcgis.com/3.46/init.js:112:280)\n at Object.<anonymous> (https://localhost:3344/webappbuilder/apps/2/jimu.js/WidgetManager.js?wab_dv=2.30:197:13)\n ----------------------------------------\nError\n at then.e.then (https://js.arcgis.com/3.46/init.js:113:97)\n at Object.switchToOpen (https://localhost:3344/webappbuilder/apps/2/jimu.js/OnScreenWidgetIcon.js?wab_dv=2.30:145:10)\n at Object.onClick (https://localhost:3344/webappbuilder/apps/2/jimu.js/OnScreenWidgetIcon.js?wab_dv=2.30:87:14)\n at Object.<anonymous> (https://localhost:3344/webappbuilder/apps/2/jimu.js/OnScreenWidgetIcon.js?wab_dv=2.30:52:14)\n at HTMLDivElement.<anonymous> (https://js.arcgis.com/3.46/init.js:65:207)'
Seems like there is a reference to nls.label1 somewhere. Did you start with a basic widget template and remove some files? I would start searching inside the files you mentioned for any reference to label1.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.