Custom widget error

4711
8
Jump to solution
03-24-2015 01:44 PM
ChristopherOlsen
Regular Contributor

I'm having the same issue with custom widgets- using WAB 1.1.  In using Robert Scheitlin, GISPwidgets, only the basemap widget works without any issues.  Share and Elevation Profile will throw this error.  Other custom widgets also seem to throw the error as well.

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Esteemed Contributor

Christopher,

   Did you add the new widget to your client\stemapp\widgets AND your actual apps copy of that widget

server\apps\xx\widgets?

View solution in original post

8 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

Christopher,

   For the elevation widget, I have not put out a version that works with 1.1 yet. In version 1.1 of Web AppBuilder something broke this widget and I have not had time to focus on getting a version out that works with 1.1. For the Share widget there is a 1.1.1 version available that I developed for 1.1.

0 Kudos
ChristopherOlsen
Regular Contributor

Hi Robert,

Thanks for the quick reply... I redownloaded 1.1.1 and it's still having the same issue.  I've closed out of the app builder, restarted the bat file, cleared cache etc.  Fiddler doesn't show any errors either.

Thanks,

Chris

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Chris,

     I branched this to a new question as it is really not the same as issue as the other thread.

Do you see anything in your browsers web console.

0 Kudos
ChristopherOlsen
Regular Contributor

panel [widgets/Share/Widget_19_panel] created.

WidgetManager.js:101 create [widgets/Share/Widget] error:TypeError: Cannot read property 'remove' of null

    at declare._setExtentChecked (http://computer.esri.com:3344/webappbuilder/apps/2/widgets/Share/Widget.js:119:25)

    at declare.postCreate (http://computer.esri.com:3344/webappbuilder/apps/2/widgets/Share/Widget.js:67:14)

    at k.create (http://js.arcgis.com/3.13/init.js:1123:348)

    at k.postscript (http://js.arcgis.com/3.13/init.js:1122:99)

    at new <anonymous> (http://js.arcgis.com/3.13/init.js:108:192)

    at declare.createWidget (http://computer.esri.com:3344/webappbuilder/apps/2/jimu.js/WidgetManager.js:252:20)

    at null.<anonymous> (http://computer.esri.com:3344/webappbuilder/apps/2/jimu.js/WidgetManager.js:98:39)

    at g.hitch (http://js.arcgis.com/3.13/init.js:177:296)

    at k (http://js.arcgis.com/3.13/init.js:199:431)

    at m (http://js.arcgis.com/3.13/init.js:199:357)

init.js:209 TypeError: Cannot read property 'remove' of null {stack: (...), message: "Cannot read property 'remove' of null"} "TypeError: Cannot read property 'remove' of null

    at declare._setExtentChecked (http://computer.esri.com:3344/webappbuilder/apps/2/widgets/Share/Widget.js:119:25)

    at declare.postCreate (http://computer.esri.com:3344/webappbuilder/apps/2/widgets/Share/Widget.js:67:14)

    at k.create (http://js.arcgis.com/3.13/init.js:1123:348)

    at k.postscript (http://js.arcgis.com/3.13/init.js:1122:99)

    at new <anonymous> (http://js.arcgis.com/3.13/init.js:108:192)

    at declare.createWidget (http://computer.esri.com:3344/webappbuilder/apps/2/jimu.js/WidgetManager.js:252:20)

    at null.<anonymous> (http://computer.esri.com:3344/webappbuilder/apps/2/jimu.js/WidgetManager.js:98:39)

    at g.hitch (http://js.arcgis.com/3.13/init.js:177:296)

    at k (http://js.arcgis.com/3.13/init.js:199:431)

    at m (http://js.arcgis.com/3.13/init.js:199:357)

    ----------------------------------------

    rejected at a (http://js.arcgis.com/3.13/init.js:200:337)

    at k (http://js.arcgis.com/3.13/init.js:200:103)

    at m (http://js.arcgis.com/3.13/init.js:199:357)

    at x.reject (http://js.arcgis.com/3.13/init.js:202:143)

    at null.<anonymous> (http://computer.esri.com:3344/webappbuilder/apps/2/jimu.js/WidgetManager.js:105:25)

    at g.hitch (http://js.arcgis.com/3.13/init.js:177:296)

    at k (http://js.arcgis.com/3.13/init.js:199:431)

    at m (http://js.arcgis.com/3.13/init.js:199:357)

    at f.resolve (http://js.arcgis.com/3.13/init.js:201:441)

    at null.<anonymous> (http://computer.esri.com:3344/webappbuilder/apps/2/jimu.js/WidgetManager.js:162:17)

    ----------------------------------------

Error

    at f.then.b.then [as then] (http://js.arcgis.com/3.13/init.js:202:253)

    at null.<anonymous> (http://computer.esri.com:3344/webappbuilder/apps/2/jimu.js/BaseWidgetPanel.js:65:53)

    at Object.g.forEach (http://js.arcgis.com/3.13/init.js:229:250)

    at declare.loadAllWidgetsInOrder (http://computer.esri.com:3344/webappbuilder/apps/2/jimu.js/BaseWidgetPanel.js:55:13)

    at declare.startup (http://computer.esri.com:3344/webappbuilder/apps/2/jimu.js/BaseWidgetPanel.js:44:12)

    at n (http://js.arcgis.com/3.13/init.js:106:103)

    at declare.startup (http://computer.esri.com:3344/webappbuilder/apps/2/themes/FoldableTheme/panels/FoldablePanel/Foldabl...)

    at n (http://js.arcgis.com/3.13/init.js:106:103)

    at declare.startup (http://computer.esri.com:3344/webappbuilder/apps/2/themes/FoldableTheme/panels/FoldablePanel/Panel.j...)

    at null.<anonymous> (http://computer.esri.com:3344/webappbuilder/apps/2/jimu.js/PanelManager.js:96:19)"

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Christopher,

   That is a bug in the 1.1.1 version I just fixed it and released 1.1.2

Share Widget Version 1.1.2 - 3/24/15

0 Kudos
ChristopherOlsen
Regular Contributor

Still happening.  Here's the log:

panel [widgets/Share/Widget_19_panel] created.

WidgetManager.js:101 create [widgets/Share/Widget] error:TypeError: Cannot read property 'remove' of null

    at declare._setExtentChecked (http://computer.esri.com:3344/webappbuilder/apps/2/widgets/Share/Widget.js:119:25)

    at declare.postCreate (http://computer.esri.com:3344/webappbuilder/apps/2/widgets/Share/Widget.js:67:14)

    at k.create (http://js.arcgis.com/3.13/init.js:1123:348)

    at k.postscript (http://js.arcgis.com/3.13/init.js:1122:99)

    at new <anonymous> (http://js.arcgis.com/3.13/init.js:108:192)

    at declare.createWidget (http://computer.esri.com:3344/webappbuilder/apps/2/jimu.js/WidgetManager.js:252:20)

    at null.<anonymous> (http://computer.esri.com:3344/webappbuilder/apps/2/jimu.js/WidgetManager.js:98:39)

    at http://js.arcgis.com/3.13/init.js:177:296

    at k (http://js.arcgis.com/3.13/init.js:199:431)

    at m (http://js.arcgis.com/3.13/init.js:199:357)

init.js:209 TypeError: Cannot read property 'remove' of null {stack: (...), message: "Cannot read property 'remove' of null"} "TypeError: Cannot read property 'remove' of null

    at declare._setExtentChecked (http://computer.esri.com:3344/webappbuilder/apps/2/widgets/Share/Widget.js:119:25)

    at declare.postCreate (http://computer.esri.com:3344/webappbuilder/apps/2/widgets/Share/Widget.js:67:14)

    at k.create (http://js.arcgis.com/3.13/init.js:1123:348)

    at k.postscript (http://js.arcgis.com/3.13/init.js:1122:99)

    at new <anonymous> (http://js.arcgis.com/3.13/init.js:108:192)

    at declare.createWidget (http://computer.esri.com:3344/webappbuilder/apps/2/jimu.js/WidgetManager.js:252:20)

    at null.<anonymous> (http://computer.esri.com:3344/webappbuilder/apps/2/jimu.js/WidgetManager.js:98:39)

    at http://js.arcgis.com/3.13/init.js:177:296

    at k (http://js.arcgis.com/3.13/init.js:199:431)

    at m (http://js.arcgis.com/3.13/init.js:199:357)

    ----------------------------------------

    rejected at a (http://js.arcgis.com/3.13/init.js:200:337)

    at k (http://js.arcgis.com/3.13/init.js:200:103)

    at m (http://js.arcgis.com/3.13/init.js:199:357)

    at x.reject (http://js.arcgis.com/3.13/init.js:202:143)

    at null.<anonymous> (http://computer.esri.com:3344/webappbuilder/apps/2/jimu.js/WidgetManager.js:105:25)

    at http://js.arcgis.com/3.13/init.js:177:296

    at k (http://js.arcgis.com/3.13/init.js:199:431)

    at m (http://js.arcgis.com/3.13/init.js:199:357)

    at resolve (http://js.arcgis.com/3.13/init.js:201:441)

    at null.<anonymous> (http://computer.esri.com:3344/webappbuilder/apps/2/jimu.js/WidgetManager.js:162:17)

    ----------------------------------------

Error

    at then.b.then (http://js.arcgis.com/3.13/init.js:202:253)

    at null.<anonymous> (http://computer.esri.com:3344/webappbuilder/apps/2/jimu.js/BaseWidgetPanel.js:65:53)

    at Object.g.forEach (http://js.arcgis.com/3.13/init.js:229:250)

    at declare.loadAllWidgetsInOrder (http://computer.esri.com:3344/webappbuilder/apps/2/jimu.js/BaseWidgetPanel.js:55:13)

    at declare.startup (http://computer.esri.com:3344/webappbuilder/apps/2/jimu.js/BaseWidgetPanel.js:44:12)

    at n (http://js.arcgis.com/3.13/init.js:106:103)

    at declare.startup (http://computer.esri.com:3344/webappbuilder/apps/2/themes/FoldableTheme/panels/FoldablePanel/Foldabl...)

    at n (http://js.arcgis.com/3.13/init.js:106:103)

    at declare.startup (http://computer.esri.com:3344/webappbuilder/apps/2/themes/FoldableTheme/panels/FoldablePanel/Panel.j...)

    at null.<anonymous> (http://computer.esri.com:3344/webappbuilder/apps/2/jimu.js/PanelManager.js:96:19)"

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Christopher,

   Did you add the new widget to your client\stemapp\widgets AND your actual apps copy of that widget

server\apps\xx\widgets?

ChristopherOlsen
Regular Contributor

That was it.  The folder was in there, but once I overrode the old files, the issue cleared up.  Thanks Robert!

0 Kudos