Select to view content in your preferred language

Migration from 3.x to 4.x

1540
1
Jump to solution
04-19-2022 08:09 PM
ADITYAKUMAR1
Occasional Contributor III

Hi,

  We have an application in Arcgis javascript 3.x.  We want to use 4.x JavaScript API now. Is there any tool available for transformation from 3.x to 4.x or we need to rewrite entire code to transform the application?

Is there any resource available where we can find out the difference between the 2 API or the changes we need to do in our code to make it run with minimal efforts?

 

Thanks

Aditya Kumar

 

 

 

0 Kudos
1 Solution

Accepted Solutions
ReneRubalcava
Frequent Contributor II

This would require a full rewrite of your application. Here is a guide to help in the process.

https://developers.arcgis.com/javascript/latest/migrating/

It should be noted, that depending how you built your original application and it's complexity, if your application is using the 3x CDN, you can probably continue to use the 4x CDN.

However, if you were using the Dojo build tools to build your application, that process is deprecated for 4x. We recommend you use some modern build tools as shown in this sample repo.

https://github.com/Esri/jsapi-resources/tree/master/esm-samples

View solution in original post

1 Reply
ReneRubalcava
Frequent Contributor II

This would require a full rewrite of your application. Here is a guide to help in the process.

https://developers.arcgis.com/javascript/latest/migrating/

It should be noted, that depending how you built your original application and it's complexity, if your application is using the 3x CDN, you can probably continue to use the 4x CDN.

However, if you were using the Dojo build tools to build your application, that process is deprecated for 4x. We recommend you use some modern build tools as shown in this sample repo.

https://github.com/Esri/jsapi-resources/tree/master/esm-samples