I have Typescript code that tries to use ESRI in a jQuery environment. I have installed arcgis-js-api with NPM, and I have tried a number of things from various pages located here at ESRI concerning ArcGIS, Typescript, jQuery, and Visual Studio. Nothing has borne fruit. After stripping down the code as much as possible, I find it's the import that doesn't work; tsc tries to resolve the module at that line and it can't do so, and it fails. This was originally a very complicated thing in Visual Studio 2017. The build is set up to use a tsconfig.json, which VS recognizes and employs. When things didn't work I figured out what tsc VS was using (they put in four for some reason) and how to invoke it in a command window to see the errors VS was hiding from me. Since then I've been attempting to build this cli only, to remove VS from the picture. I mention VS mainly because 'intellisense' seems to know what everything is. If I add a line to create a Map object, it doesn't show anything is wrong. Most likely that's not relevant, but it is the case. I've spent considerable time trying various things from module related searches on the 'net, but so far I've not hit upon the magic that makes it work
... View more