Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infographic ERR_ABORTED 404 #64

Open
gavinr opened this issue Feb 14, 2019 · 1 comment
Open

Infographic ERR_ABORTED 404 #64

gavinr opened this issue Feb 14, 2019 · 1 comment

Comments

@gavinr
Copy link
Contributor

gavinr commented Feb 14, 2019

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
Copy link
Contributor Author

gavinr commented Feb 14, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant