Upgrading arcgis js from 4.6 to 4.22

412
1
Jump to solution
03-07-2022 08:29 AM
Tarak-Kar
New Contributor III

I am using ArcGIS web map in my SapUI5 application and loading ArcGIS as a module. This works fine for version 4.6 but when I upgrate to version 4.22, I get the following error.

Uncaught TypeError: Cannot read properties of undefined (reading 'properties')
at new p (js.arcgis.com/4.22/init.js:142:211)
at p (js.arcgis.com/4.22/init.js:88:64)
at p (js.arcgis.com/4.22/init.js:254:123)
at n (js.arcgis.com/4.22/init.js:218:424)
at p (js.arcgis.com/4.22/init.js:84:243)
at n (js.arcgis.com/4.22/init.js:218:424)
at p (js.arcgis.com/4.22/init.js:618:41)
at n (js.arcgis.com/4.22/init.js:218:424)
at Ba (js.arcgis.com/4.22/init.js:1976:176)
at n (js.arcgis.com/4.22/init.js:218:424)

And this is how I am loading the arcgis -

jQuery.sap.registerModulePath('arcgis_server', 'https://js.arcgis.com');
sap.ui.define([
    'arcgis_server/4.22/init',
], function () {
    return {
        require: require
    };
});

Can anyone please guide me?

Thanks in advance.

 

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
BjornSvensson
Esri Regular Contributor

At lot has changed in the five years since the 4.6 release.  To help narrow down what the issue could be, maybe you could try different versions, to help pinpoint at which version this changed?  And then review the https://developers.arcgis.com/javascript/latest/breaking-changes/ .

View solution in original post

0 Kudos
1 Reply
BjornSvensson
Esri Regular Contributor

At lot has changed in the five years since the 4.6 release.  To help narrow down what the issue could be, maybe you could try different versions, to help pinpoint at which version this changed?  And then review the https://developers.arcgis.com/javascript/latest/breaking-changes/ .

0 Kudos