I have been trying to start working on the custom widget using TypeScript. So I have followed the example from here.
Import statement in main.ts file.
![](/legacyfs/online/458704_pastedImage_1.png)
I was facing the import statement problem.
![](/legacyfs/online/458712_pastedImage_3.png)
Solved the above issue by changing the export option in index.d.ts
![](/legacyfs/online/458711_pastedImage_2.png)
My tsconfig.json file,
![](/legacyfs/online/458713_pastedImage_4.png)
After compiling the ts file, I am trying to recover the issue in main.js file,
My main.js file,
![](/legacyfs/online/458714_pastedImage_6.png)
Getting an error while compiling js file,
![](/legacyfs/online/458716_pastedImage_8.png)
Browser window:
![](/legacyfs/online/458715_pastedImage_7.png)
The "Esri/Map" module is cannot be founded in the JS file. If I am missing anything on this above code, kindly comment to solve this issue.
Thank you in advance.