Select to view content in your preferred language

Upgradation of 3.x widgets built using Dojo to ArcGIS JS 4.21

12-09-2021 12:01 AM
New Contributor II

Hi Everyone,

I am working on a requirement, where our client wants to upgrade widgets built on ArcGIS JavaScript API 3.21 using Dojo to 4.x API version.

Is it possible to reuse the Dojo tools in ArcGIS JavaScript 4.21.



0 Kudos
1 Reply
Frequent Contributor II

It depends on what your build tooling looks like. If you are not using build tools and just using the CDN, then, yes, you can use Dojo dijits and other tools with 4x. It's not recommended, as Dojo 1 is simply in maintenance mode with varying bug fixes. But if you need to transition over a few cycles, then you can. You should move your custom widgets to some other framework tooling or web components.

If you are doing Dojo builds of your application, you can, but again, it is not recommended for 4x and is considered a deprecated practice. We have a repo here you can use for guidance, but no guarantees that it will work 100%.