Hi, I am trying to make a copy of the Analysis widget that comes with v1.13 of Experience Builder Developer Edition. The workflow is as follows, and we have no issues making copies of the sample widget or the map widget using these steps.
- Make a copy of client\dist\widgets\arcgis\analysis to client\your-extensions\widgets
- Rename the new analysis folder under client\your-extensions\widgets to analysis-custom
- Modify client\your-extensions\widgets\analysis-custom\manifest.json so that the widget's name is analysis-custom
- npm start in the client folder
For other widgets after this step it will detect them and they will be available in the builder once that's started. However for the Analysis widget I'm getting 16 errors during the client's start, related to dependencies. Most of these dependencies seem to have names matching folders in this location: client\dist\arcgis-amd-packages, but not all of them.
The default Analysis widget that comes with ExB works fine, so the dependencies must be available somehow.
I've tried reaching out to Esri Canada support with this as a case but was turned away for an unsupported workflow, and they linked me to the guide on how to create a custom widget. I'd rather not recreate the Analysis/GP widget from scratch.