Issue downloading app with custom widget

10-19-2022 03:55 PM
New Contributor II

I have a large custom widget that runs perfectly fine in the Developer Edition app creator, but when I Publish and then download the app the widget is not able to run. When running the app I see an error in the console: 


I have found a workaround to the issue: It seems that the download doesn't package the proper "chunks" folder.  Copying the contents of the "client/dist-prod/chunks" folder into the downloaded "cdn/<appId>/widgets/chunks" folder will resolve the issue, but this has to be done manually every time an app that has this widget in it is created, regardless of if I have run "npm run build:prod" in the developer edition client folder or not.

2 Replies
Occasional Contributor II

I was having the same issue and confirm that the above fix works.  Thanks


0 Kudos
Esri Contributor

Thanks @MichaelKowal  for sharing the issue and workaround. It is a bug and we will try to fix it soon.