I'm trying to update my project to version 4.24 of the API but I'm getting an error whenever I try to load my app:
This only happens when I try to switch to 4.24, if I put in version 4.23 or earlier my app loads just fine.
Solved! Go to Solution.
Hi @JustinKirtz1 - all of the classes under the tasks folder have been deprecated since version 4.20, and were removed from the API at version 4.24 in favor of the new rest modules. Here's a blog that explains this change in more detail: https://www.esri.com/arcgis-blog/products/js-api-arcgis/developers/rest-is-up-to-the-task/
To get rid of this error in version 4.24, you will need to update your project to use esri/rest/support/ProjectParameters instead of esri/tasks/support/ProjectParameters
That module is now in the rest/support folder.
There should have been some deprecation messages for this in earlier releases
Hi @JustinKirtz1 - all of the classes under the tasks folder have been deprecated since version 4.20, and were removed from the API at version 4.24 in favor of the new rest modules. Here's a blog that explains this change in more detail: https://www.esri.com/arcgis-blog/products/js-api-arcgis/developers/rest-is-up-to-the-task/
To get rid of this error in version 4.24, you will need to update your project to use esri/rest/support/ProjectParameters instead of esri/tasks/support/ProjectParameters
Derp, I didn't even notice that I was using that class in my code. Easy fix, thanks for the help!