Using Dojo in Custom Widgets

904
1
Jump to solution
03-19-2018 02:48 PM
MalcolmGruber
New Contributor II

I've been working on a custom widget as a form of a 'tooltip', shows up on hover, ect.
I was looking at bringing in the Dojo/dom-geometry but when I build the typescript, it throws an error says that it can't find the dojo/dom-geometry module. It works for every other esri module so I was wonder if there was something I have to do for dojo since dojo lives outside the esri folder.

0 Kudos
1 Solution

Accepted Solutions
ReneRubalcava
Frequent Contributor

Did you install the dojo-typings?

GitHub - dojo/typings: Dojo 1 - TypeScript Typings (including Dijit and DojoX) 

Once you do, they have some instructions on how to add them to you tsconfig

How To Use · dojo/typings Wiki · GitHub 

View solution in original post

0 Kudos
1 Reply
ReneRubalcava
Frequent Contributor

Did you install the dojo-typings?

GitHub - dojo/typings: Dojo 1 - TypeScript Typings (including Dijit and DojoX) 

Once you do, they have some instructions on how to add them to you tsconfig

How To Use · dojo/typings Wiki · GitHub 

0 Kudos