Greetings,
Is it possible to edit and compile the .tsx files provided by ESRI as a way of making custom widgets eg https://github.com/Esri/arcgis-js-api/blob/4master/widgets/Sketch.tsx.
I followed the tutorials, but instead of a new .tsx file I started with the one linked above. I was able to add a custom <div> section and some custom functionality, and although the code compiled with errors, it ran fine in the browser.
The compile errors had to do with not being able to resolve imports, for example it can't find the following import :
import { eventKey } from "esri/core/events";
Some of the imports would resolve if they changed slightly like:
import Graphic from "esri/widgets/../Graphic"; -> import Graphic from "esri/Graphic";
Others I can't find at all like VNode or eventKey even after doing npm install @arcgis/core, which I don't even know if that is correct or needed.
Is it possible to start with the .tsx file of the widget from ESRI, and if so how to resolve the imports that don't seem to be present or require altering the import paths?
Thanks