dear readers,
using NPM install etc and using Mr. Rene's video, I was able to get Intellisense of ArcGIS API to work in VS Code 1.21.x. It was very useful.
Now is getting the same EXPERIENCE with JS not possible? are there any links I could look at?
thanks to all. Special thanks to Mr. Rene for taking the time to do you tube videos.
regards
ravi.
Solved! Go to Solution.
You can install the typings for the JSAPI and if you write your code with ES6 imports using babel to transform your code, you can get intellisense in your code.
I have a couple of videos on this.
This ones a little long, but info is there: TypeScript Typings for JavaScript - YouTube
This one talks about using babel for to transpile: Set up Babel for your ArcGIS API for JavaScript Project - YouTube
Hope that helps.
You can install the typings for the JSAPI and if you write your code with ES6 imports using babel to transform your code, you can get intellisense in your code.
I have a couple of videos on this.
This ones a little long, but info is there: TypeScript Typings for JavaScript - YouTube
This one talks about using babel for to transpile: Set up Babel for your ArcGIS API for JavaScript Project - YouTube
Hope that helps.
Rene,
good afternoon. thanks a lot for the awesome videos. it helped me a quite a bit.
regards
ravi.
Rene,
I followed your videos and I was able to get it work, but when I am using intellisense it doesn't compile "watchUtils" it comes out always undefined. It works with everything else but not the Utils. If I go to the compiled file and just erase *2.default it works. Is there a specific way to use it? I really don't want to go back and write code without the intellisense, I would appreciate your help.
Thank you.
If I remember right, watchUtils is a module where you need to import * as watchUtils from "esri/core/watchUtils"
Of you could import the individual exports, import { whenFalseOnce } from "esri/core/watchUtils"
That should work with the typings.
This is what I am doing: first I import the module
Then I use it in the code
and in the console I get:
dojo.js:19 Uncaught TypeError: Cannot read property 'whenFalse' of undefined
Rene,
The second way of importing worked, if you import each method separately it works! Thank you for the tip!