I am doing a personalized Widget. I configured all the folder and files related to the widget as is shown in this image:
.. but I have a problem finding the dojo/dom library using this code line:
The error messagge in the visual studio code window is: Cannot find module 'dojo/dom'
I used npm to aditionally install dojo/dom and its typings, but I cannot fix the accees to the library.
I do use the dojo/dom library accesing it directly from a HTML application using my local ArcGis Javascript Api 4.5, but in this case I am trying to use it inside a personalized Widget writtten in Typescript
Any suggestions?
Best regards!!
Solved! Go to Solution.
I just review this [TypeScript - Setting up your development environment for Javascript Api 4.5] and [how to guide on how to develop with Dojo 1 in TypeScript using dojo/typings] and I realized that I just needed to change my tsconfig.json to:
Now Visual Studio Code recognize the module!
I just review this [TypeScript - Setting up your development environment for Javascript Api 4.5] and [how to guide on how to develop with Dojo 1 in TypeScript using dojo/typings] and I realized that I just needed to change my tsconfig.json to:
Now Visual Studio Code recognize the module!