Open gavinr opened 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.
When trying to build an app that includes the Esri Infographic widget, the
Widget.js
andWidget.html
files do not get generated, and you see an error in the browser console saying it cannot access those files: