Hi, I am getting issues in adding custom widget in experience builder 11.1 version.
Custom widget is working fine in developer version of Experience builder. However , it gives me errors whenever I deployed same widget & using in Experience Builder Application.
I have used exactly same process as given in documentation.
Process : 1. https://www.esri.com/arcgis-blog/products/arcgis-enterprise/developers/add-experience-builder-custom...
2. https://doc.arcgis.com/en/experience-builder/11.0/configure-widgets/add-custom-widgets.htm
Looking forward to your positive response.
Hi @NehaKshirsagar1 - can you please give further context and information to the issues/errors you are receiving?
Hi @CamMuller, Please check this screenshot for the error I am getting for deployed custom application .. It throws an Error: Cannot read properties of undefined {reading featureLayer}
Same code is running as expected in Experience Builder developer version
Some things to check:
Hi @JeffreyThompson2 ,
I have tried with changing version in manifest , added Map/featureLayer in map and then tried with widget; However, I am still facing this error. Error: Cannot read properties of undefined {reading featureLayer}
It would be great if you please help me in this issue..
I don't know if I can get to the bottom of this, but here are some more things to look into.
Seeing the linter flag brackets and javascript reserved words is a big red flag of some sort of syntax error.
Hi JeffreyThompson2,
I am trying to install developer version of experience builder 1.8 to check the widget code ; However, it's not letting me use it with cross-env issue.
Tried with fresh installing of 1.8 version is having error in client server illustrated below :
Please help me in resolving this problem.
Did you download the 1.8 software package and run npm ci? Are you trying to load other custom widgets from higher versions?
More fundamentally, what is your goal with this widget? What can your widget do that the default table widget can't? Could you build your widget from scratch or the javascript API? I often find starting fresh to be easier than trying to modify ESRI's code.
Hi Jeffrey,
I will be trying to rebuild the widget again in Experience Builder 1.8 version..