Esri / arcgis-experience-builder-sdk-resources

ArcGIS Experience Builder samples
https://developers.arcgis.com/experience-builder/
Apache License 2.0
119 stars 111 forks source link

Accessing ArcGISIdentityManager from @esri/arcgis-rest-request #178

Closed diliadis closed 4 months ago

diliadis commented 5 months ago

Hello,

I have the latest version of Experience Builder Developer Edition installed locally (v1.13 – November 15, 2023) and I am developing a custom widget. I've installed Node.js version 16 and React.js version 18. In my custom widget I want to run an interpolation analysis. In one of the demos in the JS API documentation the following is imported:

import { Job, JOB_STATUSES, ArcGISIdentityManager, } from "@esri/arcgis-rest-request"

Pasting that in my implementation throws a error because Job, JOB_STATUSES and ArcGISIdentityManager are not exported by @esri/arcgis-rest-request. This is a version problem as my version 3.7.0 only exports requests and not Job, JOB_STATUSES or ArcGISIdentityManager. Is there a way that I can update my @esri/arcgis-rest-request in my experience builder client? I tried npm update @esri/arcgis-rest-request but I just get the following warnings and the problem remains Screenshot 2024-02-01 at 11 27 32

qlqllu commented 5 months ago

@diliadis ExB is still using the arcgis-rest-js 3.x, which does not have this class.