esri-wab-build icon indicating copy to clipboard operation
esri-wab-build copied to clipboard

Infographic ERR_ABORTED 404

Open gavinr opened this issue 7 years ago • 1 comments

When trying to build an app that includes the Esri Infographic widget, the Widget.js and Widget.html files do not get generated, and you see an error in the browser console saying it cannot access those files:

dojo.js:22 GET https://.........../widgets/Infographic/Widget.js?wab_dv=2.10 net::ERR_ABORTED 404

gavinr avatar Feb 14 '19 18:02 gavinr

For my situation, a workaround of this issue to get the app to work was to, after the build, manually copy the following files from my app to my built app files:

widgets/Infographic/Widget.html
widgets/Infographic/Widget.js

widgets/Infographic/css/style.css

widgets/Infographic/nls/**/*

jimu.js/_chartHelpUtils.js
jimu.js/_dateFormat.js
jimu.js/clientStatisticsUtils.js

jimu.js/dijit/_ChartOptionFactory.js
jimu.js/dijit/_chartUtils.js
jimu.js/dijit/_chartDijitOption.js
jimu.js/dijit/_Gauge.js
jimu.js/dijit/Chart.js

Obviously this is not ideal in the long-run because your Infographic widget is not getting properly built into the app JS files, but I'm just providing this here to help anyone who wishes to use a workaround for now.

gavinr avatar Feb 14 '19 18:02 gavinr