I have troubles importing the projectOperator in my custom ExB Widget. This is my code:
import * as projectOperator from 'esri/geometry/operators/projectOperator' const Widget = (props: AllWidgetProps<IMConfig>) => {
const projectCoords = async () => {
await projectOperator.load()
const pt = projectOperator.execute(jimuMapView.view.center, { wkid: 2056 })
}
}When I use the Widget with the dev server, everything works fine.
I want to deploy the Widget in ArcGIS enterprise. The hosting is on IIS. When trying to use the widget in an experience, I get a 404 Not Found error. The widget tries to load projectOperator from here:
https://<my-machine>/portal/apps/experiencebuilder/cdn/287/jsapi/esri/geometry/operators/projectOperator.js
Does anybody know, what I need to do?
Importing other Maps SDK classes like "Point" works.
import Point from 'esri/geometry/Point'
In my manifest.json, I have jimu-arcgis as a dependency.
Thanks for any help!