Select to view content in your preferred language

Duplicating the arcgis-map widget in ExB Dev Edition 1.15

193
1
08-09-2024 07:47 AM
JoeRogan
Regular Contributor

In previous versions of Experience Builder (Developer Edition) I was able to make a duplicate of the normal arcgis-map widget that ships with the Dev Edition.  It was easy to copy it into the your-extensions/widgets folder, rename the folder and namein the manifest.  We then have some extra code and modifications to the widget.  With 1.15, this is running me into a lot of errors, just with the duplication, and before I put my own code in it.  The error is very long, but here's a snippet:

ERROR in ./your-extensions/widgets/arcgis-map-custom/src/message-actions/filter-action-setting.tsx 11:0-106
Module not found: Error: Can't resolve 'jimu-for-builder/lib/message-actions/components/choose-connection-type' in 'C:\Users\x\Desktop\arcgis-experience-builder-1.15\client\your-extensions\widgets\arcgis-map-custom\src\message-actions'
resolve 'jimu-for-builder/lib/message-actions/components/choose-connection-type' in 'C:\Users\x\Desktop\arcgis-experience-builder-1.15\client\your-extensions\widgets\arcgis-map-custom\src\message-actions'
Parsed request is a module
using description file: C:\Users\x\Desktop\arcgis-experience-builder-1.15\client\package.json (relative path: ./your-extensions/widgets/arcgis-map-custom/src/message-actions)

 

Has anyone seen this error yet?  I'm wondering if the changes in this widget are putting it in the same private library response from Esri where it can't be duplicated like the Analysis widget.

https://community.esri.com/t5/arcgis-experience-builder-questions/duplicating-the-exb-analysis-widge...

 

 

0 Kudos
1 Reply
DaveFullerton
Frequent Contributor

This can be solved by following the post by @MichaelLev here:

https://community.esri.com/t5/experience-builder-custom-widgets/is-there-code-error-in-exb-1-15-esri...

@GavinRehkemper Maybe a patch should be provided?

0 Kudos