Esri / esri-wab-build

Package used to build ESRI Web App Builder Apps for production.
Apache License 2.0
17 stars 5 forks source link

Infographic ERR_ABORTED 404 #64

Open gavinr opened 5 years ago

gavinr commented 5 years ago

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 commented 5 years ago

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.