I use a reference to printtask
https://totalapis.github.io/api-reference/esri-tasks-PrintTask.html
but a console.log gives errors:
When I access directly the printask script at:
https://js.arcgis.com/4.27/esri/tasks/PrintTask.js
I get this:
Solved! Go to Solution.
Hi @LefterisKoumis -
The task modules were removed at version 4.24 - see the breaking change list in the release notes for version 4.24: https://developers.arcgis.com/javascript/latest/4.24/#breaking-changes
You're going to need to use the esri/rest/print module: https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-print.html
Hi @LefterisKoumis -
The task modules were removed at version 4.24 - see the breaking change list in the release notes for version 4.24: https://developers.arcgis.com/javascript/latest/4.24/#breaking-changes
You're going to need to use the esri/rest/print module: https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-print.html
Thank you @LaurenBoyd . It would be helpful for the developers if a note was posted at the printtask page that says "Printtask is deprecated since version 4.24"
That API reference page is a copy hosted by someone else that posted the downloaded sdk doc. Esri has no control over that page.